You are here

Passing file name with spaces as parameter

3 posts / 0 new
Last post
Pingouin
Offline
Last seen: 3 days 23 hours ago
Joined: 2017-02-12 09:04
Passing file name with spaces as parameter

Hi,
I have searched this forum for any issues with spaces in names, and only see mentions of the path.
I have an app (PhotoFiltre) for which, if I pass an image file name as parameter, it will only work if the image file name does not contain any spaces (e.g. "test.jpg" will work and open once the app launched, but "some test.jpg" won't open after app launched).
I have added "NoSpacesInPath=false" in ini [launch] section, but unsurprisingly this does not help as I understand it to be for the app path, and it's false as default anyway.
I don't think it is limited to PhotoFiltre, so I posted here.
Am I missing something and there is a simple fix, or is there something that prevents this from working?
Thanks!

JLim
Offline
Last seen: 4 days 39 min ago
Joined: 2013-07-17 01:30
You should quote the full

You should quote the full path. I have no porblem tested with bat file.

@echo off
start PhotoFiltrePortable.exe "x:\Path to\some test.jpg"

Pingouin
Offline
Last seen: 3 days 23 hours ago
Joined: 2017-02-12 09:04
Sorted!

Ok thanks, I'm actually calling the portable app through Total Commander button bar, and did tell it to pass the full filename with the %N switch. I didn't realise that doesn't include the path and had to use %P%N and now it works. So it wasn't a problem with the portable app.

Log in or register to post comments