Menu

notepad++ crashes with cmd command

2007-04-11
2012-11-13
  • Nobody/Anonymous

    hello
    i think notepad++ is a great text editor but there is one thing that is bad about it. when you do the cmd command. it crashes when notepad++ is already open. If you give it any argument to the notepad++, it will crash. does anyone know how to fix that?

     
    • Dave A.

      Dave A. - 2007-05-05

      As to looking for the file in the wrong place:
      the command line must specify the entire file location when sending it to notepad++. One command line which does this is

         C:\Progra~1\notepad++\notepad++ %~f1

      The %~f1 tells the command processor to use the full file name of the argument, including the path. Put this command in a .bat file somewhere it can be found (along the path environment variable) and it will cause notepad++ to find the correct location.
      Davd A.

       
    • Nobody/Anonymous

      I have no problems to use notepad++ from the command line, since several versions.
      I only experienced (rare) crashes with the Explorer integration of notepad++, so I uncheck this option during setup.
      However notepad++ does not correctly handle command line arguments, as notepad would do. It somehow sometimes uses the current drive or current directory and then fails to load the file. It displays error messages, which show that it is looking for the file in the wrong place.

      Rolf

       
MongoDB Logo MongoDB