Page 1 of 1

run command doesn't resolve paths with " +" or "+ "

Posted: 23 Dec 2014 22:18
by sinilill
With the open command it's working!
Image

Re: run command doesn't resolve paths with " +" or "+ "

Posted: 24 Dec 2014 06:35
by bdeshi
The + is not the problem, it's the space in the name.

from the doc of run:
Quoting items with blanks slightly differs:

Code: Select all

run '"C:\With Blank.txt"';
Names with blanks must be quoted. Note that the quotes have to be wrapped in single-quotes because an argument's outer quotes are auto-stripped by XY's script parser!
So try these:

Code: Select all

run  '"D:\DOWNLOAD\TRANSPORT\hehee+ .JPG"'  ; //single-quote wrapping
run  '"D:\DOWNLOAD\TRANSPORT\hehee +.JPG"'  ; //single-quote wrapping
run """D:\DOWNLOAD\TRANSPORT\hehee+ .JPG""" ; //double-quote wrapping
run """D:\DOWNLOAD\TRANSPORT\hehee +.JPG""" ; //double-quote wrapping
edit: also, you should have a space between run and it's parameters.

Code: Select all

the screenshot shows this: run"D:\DOWNLOAD\TRANSPORT\hehee +.JPG"
you should script as this: run "D:\DOWNLOAD\TRANSPORT\hehee +.JPG";

Re: run command doesn't resolve paths with " +" or "+ "

Posted: 24 Dec 2014 13:20
by sinilill
it's a Christmas miracle, thanks :D