Tuesday, 21 January 2020

windows xp - Associating an editor to all text file extensions


This is the problem: every time I reinstall windows, I spend several weeks afterwards setting it up. Nowadays, most settings (files) can be copied, so it's a little faster than it used to be. But one things that annoys me greatly is all those text files of various extensions (.txt, .dat, .tab, .prn, ....) for which in that period I'll have to "Open with ..." and "Always use this ...".


Is there a way to copy current file associations and then from that backup copy to re-use the ones that are currently in the new windows installation ?


Or, another approach, is there a way to associate some editor (let's say, vim, which will open pretty much anything) to all text files (anything non binary, actually) ?


All ideas on the subject welcome.


And happy New Year to all.



Answer



File associations are stored in HKEY_CLASSES_ROOT in the registry. You can back up your current HKEY_CLASSES_ROOT key from the registry by right clicking on it and selecting Export. If you export as a .reg file, you can merge them later on (rather than overwriting). Merging this to your new registry will add all of your old file associations to the new machine. The only problem is, if you don't have the software installed which handled the file on your old machine, it won't work on the new machine obviously.


FileAsoc can help you with your second request.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...