mIRC Home    About    Download    Register    News    Help

Print Thread
#155115 03/08/06 10:59 PM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
Is there a way for mirc to wait for external commands to finish before it moves on to the next part of a script?

Lets say i want to trace an address using tracert
Code:
//run -n cmd /C tracert yahoo.com > trace.txt


since i dont know how long to wait, i was wondering if there was a snippet around that would let me catch the data after the command finishes.


hope this makes sense


thanks


keek: Scots - intr.v. keeked, keek·ing, keeks
To peek; peep.
#155116 03/08/06 11:37 PM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
NEVER MIND.....i found it on an old question i asked years ago


keek: Scots - intr.v. keeked, keek·ing, keeks
To peek; peep.
#155117 04/08/06 05:30 AM
Joined: May 2006
Posts: 93
Babel fish
Offline
Babel fish
Joined: May 2006
Posts: 93
i had the same problem, but the only things that you can do (i think) is to check the file after n second using a timer, and do it again until the file is changed (or created)
you can do a /timerx 0 n $read/$exists that check the file every n second and stop it using /timerx off, or restart a new /timer 1 n $read/$exists every time that you check the file and it doesn't exists

#155118 04/08/06 05:35 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
There is a snipplet made by Online to run and wait. It's available on these forums, and mircscripts.org as well (Link here).


-KingTomato
#155119 04/08/06 08:05 PM
Joined: Dec 2002
Posts: 204
K
keeker Offline OP
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
TY TY TY TY TY kingtomatoe, that is the one i was trying to remember! whooohooo


keek: Scots - intr.v. keeked, keek·ing, keeks
To peek; peep.

Link Copied to Clipboard