Niazi.net

This is about when you right-click in a files area of Windows Explorer or right-click the desktop, and go to New menu. In my case my text file entry got lost (I guess while I was trying to install & uninstall different text editors).

Searched on the net, and found one answer. Didn’t work. Searched some more and found out that the first answer was only half the piece.

Save a new (or blank) file in SystemRoot\ShellNew (or C:\Windows\ShellNew\). Filename you give it will be used later

Start regedit (Start->Run->regedit->OK)

Go to HKEY_CLASSES_ROOT and search for the extension (in my case .txt)

Create a subkey called ShellNew unless one already exists (RightClick->New->Key)

Inside ShellNew create a new String value. Name it FileName

Double-click FileName and enter the name of the file that you saved under the C:\Windows\ShellNew\.

Click on the extension key again (.txt) and note the ”(Default )” Value. Go to that value under HKEY_CLASSES_ROOT.

Repeat steps 4 to 6 for this key.

Not sure exactly, but I think you may be able to enter NullFile for the FileName and it will create a blank file (which will work fine for text file, but wont work for most other types)