forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How can I tell is RUN is done ?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Apr 16, 2004 3:37 am    Post subject: How can I tell is RUN is done ? Reply with quote

Hi
I have a RUN cmd.exe /c dir ... and need to know when its done, and ideas?

I don't want to run it externally in another program.
Its not listed (CMD.EXE) in the task list.
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Apr 16, 2004 3:42 am    Post subject: Reply with quote

I tried:

Code:
info Return code was @retcode()


before and(or) after (or anywhere)and it allways says same answer ZERO Laughing pritty sad Sad
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Apr 16, 2004 5:21 am    Post subject: Reply with quote

Anyone know what the below is for? :

O: Offline

It's in the @FILE() help section..

I was wondering if it would tell you is a text file is busy being written to.
hmm Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Apr 16, 2004 5:50 am    Post subject: Reply with quote

Nevermind, I think a found a way to tell if RUN CMD.EXE has ended its task, its not what I wanted, but it will do the very same thing...

Thanks anyways Smile
Back to top
View user's profile Send private message Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Apr 16, 2004 6:14 am    Post subject: Reply with quote

If you use the WAIT parameter for your RUN command then your script won't continue until the program
started by RUN has finished.

Greetz
Dr. Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Apr 16, 2004 11:08 pm    Post subject: Reply with quote

I'm using 'WAIT 35 (reason is long story Smile ) and with WAIT 35, it keeps going on through the script..

I found a perfect solution, it just wasn't the solution I expected (if that makes any sense Rolling Eyes ) Smile Wink
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group