Oct 29th, 2004, 02: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 01:23 PM.
Oct 30th, 2004, 01: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, 11:33 AM
@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, 11:39 AM
have you tried
Nov 1st, 2004, 11:44 AM
Yeah, I tried that and it does not work. Thanks though.
Nov 1st, 2004, 11:45 AM
open=START /MIN mybatch.bat
Maybe tht will work.
Nov 1st, 2004, 11:51 AM
It gives me an error "Access to the specified device, path, or file is denied. "
Nov 1st, 2004, 12:22 PM
how about this one
open=cmd /C start /min mybat.bat
Nov 1st, 2004, 12: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, 01:22 PM
You got it on the last one Cander, thanks. It was "open=cmd /C start /min mybat.bat"
Nov 1st, 2004, 01:39 PM
Nov 1st, 2004, 02: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.