HELP - Modify File Associations with WMI or VBScript

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
 
R

Ramesh, MS-MVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top