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 


getting return code without waiting

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


Joined: 19 May 2009
Posts: 20

PostPosted: Thu Jun 18, 2009 10:33 pm    Post subject: getting return code without waiting Reply with quote

How can I get the DOS return code without having to wait.

for example:
run programX and don't wait for it to exit
do other things
get the return code once programX exit
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sat Jun 20, 2009 10:28 pm    Post subject: Reply with quote

VDS is only single threaded so you will have to wait.

- OR -

Pipe the output of your Dos app to a text file and have your VDS app check the text file when you want it to.

Code:
# Run your Dos app without the wait option
runh cmd /C "yourdosapp.exe [switches] >somepath\yourdosappoutput.txt"
# Do some other stuff
# Later load yourdosappoutput.txt into a list and process through it.
Back to top
View user's profile Send private message Send e-mail
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