Bug - Attempting to save with a bar ( | ) in the file name results with "Please check if the file is open in another program"
-
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.
-
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 atest.txtfile totest|test.txtusing windows explorer.albeit if you already have a file, from a mac or linux machine, that’s already called e.g.
test|test.txtyou 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 nametest|test.txton your mac or linux machine. -
@Meta-Chuh Should notepad++ not be responding with a message other than “Please check if the file is open in another program” though?
-
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 directoryand activateuse new style dialogas seen at the screenshot below:
after you have selected
use new style dialogand 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 dialogis the prefered open/save dialogue setting if you are using a mac/linux/windows mixed environment, like i do. - if you try to “save as” or “rename” a file, that already has a
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