Ja dat is wel mogelijk. Ik weet niet meer precies met welk programma maar ik geloof X-setup (
http://www.x-setup.net/downloads/).
Daar heb je de optie "open non-associated files with notepad". Het kan ook een ander programma zijn maar dit is zeker in te stellen.
Ik moet erbij zeggen dat ik dit sinds W98 eigenlijk niet meer heb gedaan volgens mij en ben er dan ook niet zeker van of dit ook onder XP werkt. Maar worth the try denk ik.
Of doe het zo:
Open in Notepad/Open with...
An "Open in Notepad" rightclick option is kinda nice, but best is that, as a result of this tweak, every file that's not associated with any program, opens in notepad automatically.If you want to associate some filetype, hold SHIFT and rightclick to have the "Open with..." option.
Open RegEdit, go to HKEY_CLASSES_ROOT, open the first key: "*". Underneath is a key called "Shell", if not, create it. Rightclick on this, create a new (sub)key, name it Notepad. On the right, name the value "&Notepad" (no quotes) ...or whatever you want it called (use the "&" sign to have a keyboard indicator underneath the letter after it; just be sure that it's not doubling with other rightclick options).
Then, rightclick on the Notepad-key on the left, and create another (sub)key, called "command" (no quotes). Modify the (standard) value on the right to say "Notepad.exe %1" (no quotes) and you're done.
In Windows Me, 2000 and XP notepad won't become the default opener of non-associated files this way. To have that too, a bit complicated workaround (first read completely):
You'll need to delete this key: HKEY_CLASSES_ROOT\Unknown\Shell\openas, completely. For clarity, also delete the string value "openas" you see when the Shell key is selected (will be replaced with a standard value) and to prevent a not working "Open with..." entry from appearing go to HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\OpenWith and delete that one completely too...
..but wait, now you don't have access to the "Open with..." dialog at all... To prevent that from happening, the info at the "Unknown" key needs to be ported to the "*" key first. This way you'll have it not only available as rightclick option for non-registered filetypes, but for all filetypes (could be useful, right ?).
So, underneath HKEY_CLASSES_ROOT\*\Shell create one more subkey, call "OpenAs" or something, and set the standard value to - for instance - "Open &with..." (no quotes). Create a new subkey to this one, called "command" again, and set the standard value to read "rundll32.exe shell32.dll,OpenAs_RunDLL %1" (no quotes). This should restore the option.
Doubleclicking an unknown filetype displays the Open With dialog. It is easy to forget to clear the Always Use checkbox if you don't want the association to be permanent. To have it unchecked by default, open HKEY_CLASSES_ROOT\Unknown\shell\OpenAs\command. Change the default value by adding a space and %2 right after the %1. Undesirable effect in 2k/XP (Me ?) - the checkbox is completely disabled.
[
Voor 75% gewijzigd door
TXC op 09-11-2004 13:59
]