-
After i shell a dos program, the window for it in windows 98 stays around. Its the one that tells you the dos program has terminated, but you have to close it manually. Is there any way around this? I tried it hiden but they are still there you just cant see them.
any thought on how to get rid of these things?
thanks
-
I seem to recall having to either:
a) setting dos apps to close on exit in the OS
and /or
b) opening some apps with batchfiles and exiting them with an exit command
Sorry, I can't quite recall
paul
-
Here try one of this. I don't remeber if the "C" or the "K" that auto close the dos.
Code:
' Dummy = Shell("cmd.exe /C " & """C:\Macro.doc""", 1)
' Dummy = Shell("cmd.exe /K cd..", 1)
-
It's a "C" - and for Win'95 you'll have to use command.com instead of cmd.exe - eg;.
Win-NT: Shell("cmd.exe /C [filename]")
Win-95: Shell("command.com /C [filename]")
-
Hi,
Alternatively, find the dos program through Windows explorer, right click on the program, select properties, then program, and check the "Close on Exit" box.
The program will now close if shelled from VB or run manually.
Al.
-
Thanks Buzby!
Never new that. No wonder when I used cmd.exe on win95, it fails.
-
Win-95: Shell("command.com /C [filename]")
it worked beautifully i thank you buzby.