Menu

Can't create new file from context menu

2005-05-14
2012-11-13
  • Greg Bullock

    Greg Bullock - 2005-05-14

    Before installing NPP (or after uninstalling), I can create a new text file from within Explorer by choosing New from the context menu then choosing Text File.  After installing NPP, the other New options are still there, but the Text File option vanishes.  Any ideas how to restore this option?

    Thanks.
    Greg

     
    • Don HO

      Don HO - 2005-05-15

      It's the bug of association of *.txt in the current version (v2.9). This bug is fixed in the v3.0 which will be available in the next week (I hope).

      Deleting the association of *.txt via File Association Manager will solve your problem.

      Don

       
      • Nobody/Anonymous

        On Vista using NPP v4.7.5 this bug is back.

        Had to log in as administrator, edit the registry and remove all reference apart from the basic NullFile.

         
    • Greg Bullock

      Greg Bullock - 2005-05-17

      Thanks, Don.

      Ideally, I'd like .txt files to open with N++ by default, but I'd still like to be able to create .txt files from Explorer's property menu.  I fear that I'll lose both by deleting the association via File Association Manager.

      Greg

       
      • Don HO

        Don HO - 2005-05-18

        Greg,

        You have 2 choice :
        1. wait for the v3.0 in which this bug is fixed.
        2. modify the registry manually - no need to say that you should backup your registry before modifying it :

        under the \HKEY_CLASSES_ROOT\.txt\
        create a new key "ShellNew" if it is not present.
        under the \HKEY_CLASSES_ROOT\.txt\ShellNew\
        create a new string value "NullFile".

        Now you can return to your explorer, the SECOND right click's context menu will give you "Notepad++ Document".

        Don

         
    • Greg Bullock

      Greg Bullock - 2005-05-26

      Thanks very much, Don.  Good work.

      Regards.
      Greg