Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run dos application & doevents

Status
Not open for further replies.

demoniac

Programmer
Jun 14, 2001
63
US
When I run a dos program from VB and then follow it with a doevents, it doesn't seem to really work. It appears it just continues with execution before the dos program is finished...

Call Shell ("hlnet use w: \\@two\c-drive",vbMinimizedNoFocus)
Doevents

And that doesn't seem to work. Any suggestions?

Thanks :eek:)
demoniac
 
You need to use the WaitForSingleObjectEx API and then use the process handle that is returned from the Shell command. - Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top