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

Things you’d like to miss in the future...
Post Reply
sinilill
Posts: 111
Joined: 02 Dec 2013 18:37

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

Post by sinilill »

With the open command it's working!
Image

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

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

Post 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";
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

sinilill
Posts: 111
Joined: 02 Dec 2013 18:37

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

Post by sinilill »

it's a Christmas miracle, thanks :D

Post Reply