Click to See Complete Forum and Search --> : Running DOS app. in background
Dan F.
Oct 30th, 1999, 09:35 AM
Does anyone know a good way to run a windowless DOS app invisibly in the background? Along with finding out when it's done?
chrisfricke
Oct 31st, 1999, 06:59 PM
If you have a batch file which calls the program, then you can.
Kill "c:\finished.txt" 'make sure there's
'no file indcator left
call shell("mybatch.bat",vbhide)
do while dir("c:\finished.txt")=""
loop
The batch file should have a final line which
reads something like
dir >>c:\finished.txt
To create the finished.txt file
Cheers
Chris
eiSecure
Aug 5th, 2001, 10:58 AM
Well, you can use ShellExecute with ShellAndWait APIs.
ravi15481
Mar 29th, 2004, 12:44 AM
sorry!
TDQWERTY
Mar 29th, 2004, 01:16 AM
or u could do a shellandwait function...give a search or search a thread i posted (replyed) with dos output on text box.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.