Page 1 of 1
run command after time xx
Posted: 26 Apr 2020 17:40
by swan_x
i need to run one script:
but after time 5 sec to run my script.
and another, run app1, wait 5sec, run app2. i have try this but not work:
Code: Select all
run "D:\app01.exe"; wait 5000; "D:\app02.exe";
how to? tanxs to everybody.
Re: run command after time xx
Posted: 26 Apr 2020 17:42
by highend
By reading the help file about run...
Re: run command after time xx
Posted: 26 Apr 2020 19:00
by swan_x
my problem is second program. not run. i have:
Code: Select all
run "D:\heic0407b.jpg" wait 5000 "D:\app.exe"
Re: run command after time xx
Posted: 26 Apr 2020 19:01
by highend
Your problem is run^^
Re: run command after time xx
Posted: 27 Apr 2020 09:01
by swan_x
i don't understand. please write a simple example.
Re: run command after time xx
Posted: 27 Apr 2020 10:10
by highend
I just don't get it. What
exactly doesn't work here?
Code: Select all
$start = now("msecs");
run '"<path with spaces>\app1.exe"';
wait 5000;
run '"<path with spaces>\app2.exe"';
e "Time: " . now("msecs") - $start . " msecs";
It clearly shows that it waits 5000+ ms...
Re: run command after time xx
Posted: 27 Apr 2020 12:45
by PeterH
At first I thought this is a typo
Then I found e is an alias for command echo.

Didn't know that!
And it seems it's the very only XY-command having an alias? Is that correct?
Re: run command after time xx
Posted: 27 Apr 2020 12:50
by highend
No, e.g. gpc -> getpathcomponent
Re: run command after time xx
Posted: 27 Apr 2020 13:18
by PeterH
Ah - when you say it I remember gpc()
These are different formats of XY-documentation:
Echo-command defines e explicit as an alias. (That's what I've searched for.)
gpc() is shown as a second form for getpathcomponent - but without describing/naming that an 'alias'.
Re: run command after time xx
Posted: 27 Apr 2020 14:44
by swan_x
yes, work!
tanxs for your help. regards.