HELP - Modify File Associations with WMI or VBScript

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings.

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!

Thanks,
Steven
Dallas, TX
USA
 
Steven,

This command-line should do the trick:

cmd /c assoc.doc=WordPad.Document.1

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Greetings.

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!

Thanks,
Steven
Dallas, TX
USA
 
Back
Top