[XP SP2] Hoe default file handler in te stellen?*

Pagina: 1
Acties:

  • usr-local-dick
  • Registratie: September 2001
  • Niet online
Hoi

Ik wil heel vaak files openen zonder bekende extentie, en met allerlei verschillende namen ook. Als ik daar nu op klik moet ik voor iedere file 5 dialoogvensters doorploegen:

[dubbelklik file]

Windows cannot open this file: File: test.tztess
What do you want to do:

Select the program from a list
[klik]

[scroll en selecteer notepad]

[OK]


En dit gaat zo voor iedere file die WIndwos niet kent.

Is er niet een manier om standaard alle files die WIndows niet herkent te laten openen met bv. Notepad?
Want verreweg de meeste file die niet herkend worden zijn in mijn geval text files vanaf unix shares...

alvast bednakt

  • elevator
  • Registratie: December 2001
  • Niet online

elevator

Officieel moto fan :)

Welke Windows versie heb je het over? :)
Verder - ik vermoed van niet - je kan wel door met shift te rechtsclicken direct 'Open with' kiezen normaal gesproken :)

Verwijderd

ik vermoed van niet
Je vermoeden klopt. ;)

  • j_du_pee
  • Registratie: Maart 2000
  • Laatst online: 23-09-2024

j_du_pee

du pain, du vin, du pee

hiervoor heb ik een snelkoppeling in mijn "send to" folder gemaakt naar notepad. doet ongeveer wat je wil: rechtsklik -> sendto -> notepad ;)

kaart != map && bottel != fles
Wacht op antwoord


  • TXC
  • Registratie: Oktober 2002
  • Laatst online: 24-12-2025

TXC

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 ]


  • usr-local-dick
  • Registratie: September 2001
  • Niet online
Welke Windows versie heb je het over? :)
XP-SP2-EN
Pagina: 1