| View previous topic :: View next topic |
| Author |
Message |
dangt Newbie
Joined: 19 May 2009 Posts: 20
|
Posted: Thu Jun 18, 2009 10:33 pm Post subject: getting return code without waiting |
|
|
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 |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sat Jun 20, 2009 10:28 pm Post subject: |
|
|
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 |
|
 |
|