|
-
Apr 27th, 2000, 11:28 AM
#1
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
-
Apr 27th, 2000, 11:48 AM
#2
Fanatic Member
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
-
Apr 27th, 2000, 03:20 PM
#3
Fanatic Member
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)
Chemically Formulated As:
Dr. Nitro
-
Apr 27th, 2000, 03:34 PM
#4
Frenzied Member
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]")
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
Apr 27th, 2000, 07:32 PM
#5
Hyperactive Member
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.
A computer is a tool, not a toy.
-
Apr 28th, 2000, 12:04 AM
#6
Fanatic Member
Thanks Buzby!
Never new that. No wonder when I used cmd.exe on win95, it fails.
Chemically Formulated As:
Dr. Nitro
-
Apr 28th, 2000, 04:07 AM
#7
Win-95: Shell("command.com /C [filename]")
it worked beautifully i thank you buzby.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|