Does anyone know a good way to run a windowless DOS app invisibly in the background? Along with finding out when it's done?
Printable View
Does anyone know a good way to run a windowless DOS app invisibly in the background? Along with finding out when it's done?
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
Well, you can use ShellExecute with ShellAndWait APIs.
sorry!
or u could do a shellandwait function...give a search or search a thread i posted (replyed) with dos output on text box.