Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Assocaiations - Making a global change/batch file etc

Status
Not open for further replies.

markdavies1978

Technical User
Joined
May 27, 2006
Messages
124
Hi all,

Does anyone know of away of creating some sort of bat file or simple means of changing\creating a file association for a ton of workstations.

This will save going round every PC & doing it individually.

Thanks.
 
The easiest way is to create the assosication on one machine. Then export this new .xxx branch from the HKEY_CLASSES_ROOT registry hive and distribute it to users via logon script, batch file, or whatever distribution method you'd normally use.
 
Thanks Linney.

It works in terms of adding the entry but not the association with the program I require.

Any ideas? Is there another key somewhere?
 
Do I understand that the .xxx key (and its Openwith subkey) in HKEY_CLASSES_ROOT does not create the association that you need? What is the file extension that you're trying to associate?
 
Did you reboot after making any changes in the Registry?

Via a batch file you might be able to make use of the "Assoc" command?


323526 - HOW TO: Use the ASSOC Command to Display and Modify File Name Extension Associations in Windows 2000

184082 - How to Use the Assoc Command to Change File Associations

This is a Bat file for default associations that many people result to, perhaps you could look at it as an experiment and possible modification?

Easy File Associations for Windows XP
 
I'm associating a .mdi file with 'Microsoft Office Document Imaging' application.

I have this association on my PC & exported the key.

When I merge this exported key on a PC which doesn't have the association it adds the .mdi within the file types but not what to open that file with.

Yes, I rebooted as well.
 
OK, I didn't look far enough. There also should be another key & subkey at:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xxx

You'll need to import that to the new machine also.
 
Smah - Good work. That was the other key I was looking for!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top