Trying to make a .bat file to add a file association

G

Guest

I have been looking for a sample .bat file that adds a .xfd extention to the
registry. I am trying to make a .bat file so it can sent out to 300
computer users.
The .xfd file needs to be added and associated with ICS Viewer.
ICS Viewer is document reader program in case anyone needs to know.
Thanks,
Dumb David
DD
 
P

Pegasus \(MVP\)

David said:
I have been looking for a sample .bat file that adds a .xfd extention to the
registry. I am trying to make a .bat file so it can sent out to 300
computer users.
The .xfd file needs to be added and associated with ICS Viewer.
ICS Viewer is document reader program in case anyone needs to know.
Thanks,
Dumb David
DD

Associate.exe from the Win2000 Resource Kit will do it.
Maybe the command is also included with the WinXP
Resource Kit. Alternatively you could experiment with
a registry hack, using regedit.exe.
 
A

Alex Nichol

David said:
I have been looking for a sample .bat file that adds a .xfd extention to the
registry. I am trying to make a .bat file so it can sent out to 300
computer users.
The .xfd file needs to be added and associated with ICS Viewer.
ICS Viewer is document reader program in case anyone needs to know.

Having installed on one machine, use Regedit.exe to export its Key -
HKEY_CLASSES_ROOT\.xfd
(and any other it refers to in its Default)
to a reg file

Then in your bat use the line
regedit /s filename.reg
 

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