Problem with spaces in output file path in command line
Posted: Thu Mar 11, 2010 11:28 am
Hello,
I try to make a command line to get a screen picture and to create a jpg out of it. The forum topics helped me a lot and I have this command:
With no spaces in the output file path, everything is ok: a file named file.jpg in created in "c:\temp\monrep\"
Now if the output directory contains a space character, this is what appends:
The created file is: "c:\temp\mon.jpg"
The created file is: "c:\temp\mo.jpg"
Very likely there is something strange in the interpretation of the output path...
Version of XnView: 1.97.2
Did I do something wrong or is there really something strange in the way the output path has been interpreted?
Any help (or fix
) would be greatly appreciated,
Best regards
I try to make a command line to get a screen picture and to create a jpg out of it. The forum topics helped me a lot and I have this command:
Code: Select all
"C:\Program Files\XnView\xnview.exe" -capture=desktop,c:\temp\monrep\file.jpg
Now if the output directory contains a space character, this is what appends:
Code: Select all
"C:\Program Files\XnView\xnview.exe" -capture=desktop,c:\temp\mon rep\file.jpg
Code: Select all
"C:\Program Files\XnView\xnview.exe" -capture=desktop,"c:\temp\mon rep\file.jpg"
Very likely there is something strange in the interpretation of the output path...
Version of XnView: 1.97.2
Did I do something wrong or is there really something strange in the way the output path has been interpreted?
Any help (or fix

Best regards