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?
Printable View
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?
if you call it from a SHELL command, you can hide it.
is there an ECHO OFF in the batch file?
@ECHO OFF keeps text off the DOS window but the window is still visible. I need it to be at least minimized.
have you tried
open=yourbatch.bat /min
?
Yeah, I tried that and it does not work. Thanks though.
try
open=START /MIN mybatch.bat
Maybe tht will work.
It gives me an error "Access to the specified device, path, or file is denied. "
bleck.
:blush:
how about this one
open=cmd /C start /min mybat.bat
I think you can shell from VB without showing a window. May be the hard way around it, but it may be possible.
You got it on the last one Cander, thanks. It was "open=cmd /C start /min mybat.bat"
w00t!
:thumb:
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 /?