valvo6
March 15th, 2001, 07:30 AM
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?
|
Click to See Complete Forum and Search --> : SHELL command question valvo6 March 15th, 2001, 07:30 AM 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? Cimperiali March 15th, 2001, 07:49 AM 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. Iouri March 15th, 2001, 07:54 AM Right click on DOS program, go to properties and uncheck 'Close Window on exit' Iouri Boutchkine iouri@hotsheet.com valvo6 March 15th, 2001, 08:02 AM 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. Iouri March 15th, 2001, 08:15 AM DOes not matter. Find this DOS command and set the property. Iouri Boutchkine iouri@hotsheet.com kcbw March 24th, 2001, 07:35 PM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |