Oct 29th, 2004, 03:29 PM
Minimize the DOS window [RESOLVED]
How do I minimize the dos window when I run a batch file. I am running a couple setup files and I run a batch file from the Autorun.inf file but I want the dos window to minimize during the setups. Any ideas?
Last edited by jordan23; Nov 1st, 2004 at 02:23 PM.
Oct 30th, 2004, 02:43 AM
if you call it from a SHELL command, you can hide it.
is there an ECHO OFF in the batch file?
Nov 1st, 2004, 12:33 PM
@ECHO OFF keeps text off the DOS window but the window is still visible. I need it to be at least minimized.
Nov 1st, 2004, 12:39 PM
have you tried
Nov 1st, 2004, 12:44 PM
Yeah, I tried that and it does not work. Thanks though.
Nov 1st, 2004, 12:45 PM
open=START /MIN mybatch.bat
Maybe tht will work.
Nov 1st, 2004, 12:51 PM
It gives me an error "Access to the specified device, path, or file is denied. "
Nov 1st, 2004, 01:22 PM
how about this one
open=cmd /C start /min mybat.bat
Nov 1st, 2004, 01:24 PM
I think you can shell from VB without showing a window. May be the hard way around it, but it may be possible.
Nov 1st, 2004, 02:22 PM
You got it on the last one Cander, thanks. It was "open=cmd /C start /min mybat.bat"
Nov 1st, 2004, 02:39 PM
Nov 1st, 2004, 03:33 PM
i didn't see it when I read online help for CMD. Should have consulted the books! Good to know!
Now, I see cmd -> start /?
Click Here to Expand Forum to Full Width
Survey posted by VBForums.