Page 1 of 1

[solved] script to run a file with green label

Posted: 04 Apr 2015 15:54
by lian00
Hello,
I made a working script what go to a directory, select the green labelled file and launch it. But I deleted it. And cannot recreate it :twisted:
So, I know how to go to a directory and show the green labelled file

Code: Select all

goto "E:\directory?lbl:green";
I know how to select it

Code: Select all

sel 1;
I know how to launch it
run "<curitem>";

But this last line won't work if the path contains spaces. And I'm sure there is a quicker way to get what I want. Coding with XYplorer gets me mad... It takes hours to find just <curitem>. Maybe someday I will make some tutorial "script in XYPlorer for dummies" because each time I try to code something, I waste a lot of times for simple things. I'm not a developper but I make very little codes with AutoHotkey, php and some more languages and XYplorer is just the jungle to find the "good" information.

Re: script to run a file with green label

Posted: 04 Apr 2015 16:01
by lian00
OK, found it. It works with open command. OPEN COMMAND, damn it. :blackstorm:

Re: [solved] script to run a file with green label

Posted: 04 Apr 2015 17:13
by bdeshi
You could've also tried run ""<curitem>"" or run quote(<curitem>) :wink:

Re: [solved] script to run a file with green label

Posted: 04 Apr 2015 17:34
by lian00
SammaySarkar wrote:You could've also tried run ""<curitem>"" or run quote(<curitem>) :wink:
Thanks. I've tried ""<curitem>"" without effect and dit not know run quote - nevet saw this in my searching.