Default action for non-registered fiel types

  Batch 09:32 24 Jul 2006
Locked

With W98 / ME, it was possible to edit the registry such that, in Windows Explorer, clicking on a file (or the default action in the context menu) of a non-registered type would open the file in Notepad. E.g.:

HKEY_CLASSES_ROOT
Unknown
Shell (Default) View
openas
View (Default) View as ASCII
command (Default) "C:\Windows\Notepad.exe %1"

Where the View Key and all its subordinates are added and the Shell key has its default changed to View from openas.

Have tried this in XP, but results in "Windows cannot open this file....To open this file WIndows needs to know what program created it....."

Is there some way I can achieve what I set out to do (or have I just made a typo somewhere that's causing it not to work)?

  Batch 09:34 24 Jul 2006

With dashes to preserve the indentation:

HKEY_CLASSES_ROOT
---Unknown
------Shell---(Default)---View
------openas
---------View---(Default)---View as ASCII
---------command---(Default)---"C:\Windows\Notepad.exe %1"

  Batch 09:37 24 Jul 2006

3rd attempt:


HKEY_CLASSES_ROOT
---Unknown
------Shell---(Default)---View
------openas
---------command---(Default)---"%SystemRoot\system32\......"
------View---(Default)---View as ASCII
---------command---(Default)---"C:\Windows\Notepad.exe %1"

  Batch 09:40 24 Jul 2006

Solved it myself.

The "C:\Windows\Notepad.exe %1" doesn't want the quotes. From what I recall these were needed in W98/ME.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

iMac Pro review

See iconic duo Smith and Foulkes' epic animation for the BBC's Winter Olympics coverage

iMac Pro review

Idées cadeaux pour geeks et tech addicts