Default action for non-registered fiel types

  Batch 09:32 24 Jul 06
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 06

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 06

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 06

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.

How to get Windows 10 for free | How to install Windows 10: There is still a way to avoid paying…

1995-2015: How technology has changed the world in 20 years

Alex Chinneck’s giant ice cube Christmas tree at Kings Cross

Apple rumours & predictions 2017: The iPhone 8, new iPads, and everything else you should expect fr7…