Community
    • Login

    Bug - Attempting to save with a bar ( | ) in the file name results with "Please check if the file is open in another program"

    Scheduled Pinned Locked Moved General Discussion
    bug
    4 Posts 2 Posters 1.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jonni DillonJ Offline
      Jonni Dillon
      last edited by

      I noticed just saving a plane text file, created in notepad++, with a file name containing a bar symbol results with the message “Please check if the file is open in another program”. Is this known? I wasn’t sure where else to look for bugs.

      Meta ChuhM 1 Reply Last reply Reply Quote 0
      • Meta ChuhM Offline
        Meta Chuh moderator @Jonni Dillon
        last edited by Meta Chuh

        @Jonni-Dillon

        unfortunately windows itself will prevent you from creating a file with an | in it’s name, as this is the pipe character.
        you can crosscheck this if you try to rename a test.txt file to test|test.txt using windows explorer.

        albeit if you already have a file, from a mac or linux machine, that’s already called e.g. test|test.txt you will be able to edit and save (update) that file, but you won’t be able to “save as” even with the same name, if it has a |in it’s file name.

        for this it’s best to save them as test--test.txt, and then rename them to their desired name test|test.txt on your mac or linux machine.

        1 Reply Last reply Reply Quote 1
        • Jonni DillonJ Offline
          Jonni Dillon
          last edited by

          @Meta-Chuh Should notepad++ not be responding with a message other than “Please check if the file is open in another program” though?

          Meta ChuhM 1 Reply Last reply Reply Quote 1
          • Meta ChuhM Offline
            Meta Chuh moderator @Jonni Dillon
            last edited by Meta Chuh

            @Jonni-Dillon

            Should notepad++ not be responding with a message other than “Please check if the file is open in another program” though?

            yes, and it will, if you go to settings > preferences > default directory and activate use new style dialog as seen at the screenshot below:

            Imgur

            after you have selected use new style dialog and restarted notepad++, it will behave the following way:

            • if you try to “save as” or “rename” a file, that already has a | in it’s file name, it will not permit it and not even present you with a save as or rename dialogue.
            • if you try to “save as” or “rename” any file that does not have a | in it’s filename yet, by adding a | to it’s current file name, it will correctly tell you “the file name is not valid” in an alert window.

            note: the use new style dialog is the prefered open/save dialogue setting if you are using a mac/linux/windows mixed environment, like i do.

            1 Reply Last reply Reply Quote 3

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors