Question: I'm attempting to find out how to use a WMI or VBScript to modify the default "Open With" program for a given 'File Type' in Windows XP. (Both Local and Remote systems using WMI) I have users that want to open .DOC files in WordPad.exe instead of WordView.exe.
Is there an Object or Method that exposes this availability? If so, does anybody have any code snips? I have to update about 1000+ computers and I would like to send out this script via SMS or during login.bat
Any help would be GREATLY appreciated!
Answer: The following command-line should do the trick for you:
%comspec% /c assoc .doc=WordPad.Document.1
CMD /c assoc .doc=WordPad.Document.1
This can be executed from a batch file.