-
Oct 29th, 2004, 02:29 PM
#1
Thread Starter
Addicted Member
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, 01:43 AM
#2
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
#3
Thread Starter
Addicted Member
@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
#4
have you tried
open=yourbatch.bat /min
?
-
Nov 1st, 2004, 12:44 PM
#5
Thread Starter
Addicted Member
Yeah, I tried that and it does not work. Thanks though.
-
Nov 1st, 2004, 12:45 PM
#6
try
open=START /MIN mybatch.bat
Maybe tht will work.
-
Nov 1st, 2004, 12:51 PM
#7
Thread Starter
Addicted Member
It gives me an error "Access to the specified device, path, or file is denied. "
-
Nov 1st, 2004, 01:22 PM
#8
bleck.
how about this one
open=cmd /C start /min mybat.bat
-
Nov 1st, 2004, 01:24 PM
#9
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
#10
Thread Starter
Addicted Member
You got it on the last one Cander, thanks. It was "open=cmd /C start /min mybat.bat"
-
Nov 1st, 2004, 02:39 PM
#11
w00t!
-
Nov 1st, 2004, 03:33 PM
#12
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 /?
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
|