[Script of Mar. 25] Script for resetting file association (VBScript)

Script Download: VBSFileAssociation.zip
https://gallery.technet.microsoft.com/scriptcenter/Script-for-resetting-file-103c5a89

This VBScript illustrates how to reset file association for a .doc file (It can be used for other file types as well with slight modification)

If we double click on a text file, it opens with Notepad by default whereas the desire application to open .txt would be Notepad++. For this we need to manually reset file association with a right click and selecting the option “Open with”. How about changing other file types (.cs, .cpp and so on) to be associated with Notepad++? This needs changing the file association for each and every file type which is not time efficient. We can use this VBScript to change file association for multiple file types.

image image
image

You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery