New file, tabs and dir with spaces (BUG?)

  • CRC

    CRC - 2007-02-28


    Does NPP have Problem with long directory names containing spaces?

    If NPP (Version 4.0.2) is called with
    - one tab is already open,
    - a file to be created (which does not exist), and
    - the directory with the new file contains spaces,
    then NPP produces warning messages "Create new file" for every space-splitted directory token.

    $ cmd.exe
    $ cd "C:\Dokumente und Einstellungen\CRC"
    $ "c:\Programme\Notepad++\notepad++.exe" bla1

    "Create new file" works fine here, but now:

    $ "c:\Programme\Notepad++\notepad++.exe" bla2

    Now NPP shows the "Create new file dialog" for

    - "c:\und doesn't exist. Create it?"
    - "c:\Einstellungen\CRC\bla2 doesn't exist. Create it?"

    Bug or what did I do wrong?


    • Nobody/Anonymous

      Do following:
      $ "c:\Programme\Notepad++\notepad++.exe" "c:\Dokumente und Einstellungen\Notepad++\CRC\bla2"

      Best Regards

      • CRC

        CRC - 2007-03-03

        Thanks, but though this works, it is not the case I'm referring to.

        I'm using Total Commander (Windows Explorer substitute) where a shortcut creates a new file. Unfortunately I'm running into the described error.

        The problem is when your *current* path (the working directory) has spaces.

        - working directory (current path) has spaces (i.e. c:\spaced path\)
        - notepad++.exe <somefilename>
        - ok
        - notepad++.exe <someotherfilename>
        - ERROR creating file

        Try it.
        Maybe I'm doing something wrong?



Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks