|
-
March 15th, 2001, 08:30 AM
#1
SHELL command question
When the shell command executes, the DOS window pops up, command executes, then DOS window closes before I can read what was in it. How can I leave the DOS window open until I close it with ctrl+c or other?
-
March 15th, 2001, 08:49 AM
#2
Re: SHELL command question
try this: make a .bat file which includes only the call to your dos program. Then shell to the .bat file
Hope this help
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
March 15th, 2001, 08:54 AM
#3
Re: SHELL command question
Right click on DOS program, go to properties and uncheck 'Close Window on exit'
Iouri Boutchkine
[email protected]
-
March 15th, 2001, 09:02 AM
#4
Re: SHELL command question
I am not running from a DOS icon or shortcut. The DOS app launches within my VB app so I can't set the checkbox.
-
March 15th, 2001, 09:15 AM
#5
Re: SHELL command question
DOes not matter. Find this DOS command and set the property.
Iouri Boutchkine
[email protected]
-
March 24th, 2001, 08:35 PM
#6
Re: SHELL command question
The following opens a new DOS window and issues the DIR command.
The window gets the focus, and you can close it when you wish.
Shell "c:\windows\command.com /K dir", vbNormalFocus
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
|