I am looking for a routine to do the following:
1) Open a DOS prompt (on a Win 2003 server)
2) Send DOS commands to a program (an FTP program)
3) Wait for the handle or an error to return
4) Be able to recognize when the handle has been gone too long (probably using a timer here, unless there's a way to set a time limit).
This might be a tall order, so reference links would be fine if they show me how to accomplish this. The primary part of this request is to recognize the handle's return and catch and DOS errors.
Thanks in advance!