1.9.5: XnViewMP doesn't open a passed folder if it has a trailing backslash and quotes
Posted: Sat Nov 01, 2025 12:21 am
XnView: MP 1.9.5 - 64 bit
OS: Windows 64bit
Passing a folder is not working if it's in the following format: "C:\Some folder\"
Effect: "File not found!" error shown
To reproduce:
1. Run xnviewmp.exe from a command line and pass a valid folder as a parameter that ends with a backslash and has quotes around it, e.g.
xnviewmp.exe "C:\Some folder with spaces and a trailing backslash\"
Actual: XnViewMP shows an error "File not found!"
Expected: XnViewMP opens the folder
Additional notes:
- If I pass a folder without a trailing backslash, it works.
- If I pass a folder with a trailing backslash but without quotes, it also works.
OS: Windows 64bit
Passing a folder is not working if it's in the following format: "C:\Some folder\"
Effect: "File not found!" error shown
To reproduce:
1. Run xnviewmp.exe from a command line and pass a valid folder as a parameter that ends with a backslash and has quotes around it, e.g.
xnviewmp.exe "C:\Some folder with spaces and a trailing backslash\"
Actual: XnViewMP shows an error "File not found!"
Expected: XnViewMP opens the folder
Additional notes:
- If I pass a folder without a trailing backslash, it works.
- If I pass a folder with a trailing backslash but without quotes, it also works.