[solved] script to run a file with green label

Discuss and share scripts and script files...
Post Reply
lian00
Posts: 429
Joined: 09 Jul 2014 17:12

[solved] script to run a file with green label

Post 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.
Last edited by lian00 on 04 Apr 2015 16:01, edited 1 time in total.
Windows 10 64 bits

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

Re: script to run a file with green label

Post by lian00 »

OK, found it. It works with open command. OPEN COMMAND, damn it. :blackstorm:
Windows 10 64 bits

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

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

Post by bdeshi »

You could've also tried run ""<curitem>"" or run quote(<curitem>) :wink:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

lian00
Posts: 429
Joined: 09 Jul 2014 17:12

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

Post 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.
Windows 10 64 bits

Post Reply