Minimize .bat file?

G

Guest

I was trying to map a network drive but it didn't work.
I figured out that that was because the mapping couldn't be done
before another script was completed. So I made a simple .bat file
using net use and kix32 and sleep in autostart. Then I notized that the
..bat file is waiting in an "open" command window until it is completed.

The file waits for about two minutes and I'm wondering if there is a
way to run the .bat file in a minimized mode so that it doesn't
"disturbe" so much on the desktop?

W2K with all SP:s and updates
 
T

Todd Vargo

clippan said:
I was trying to map a network drive but it didn't work.
I figured out that that was because the mapping couldn't be done
before another script was completed. So I made a simple .bat file
using net use and kix32 and sleep in autostart. Then I notized that the
.bat file is waiting in an "open" command window until it is completed.

The file waits for about two minutes and I'm wondering if there is a
way to run the .bat file in a minimized mode so that it doesn't
"disturbe" so much on the desktop?

W2K with all SP:s and updates

start "" /min batch.cmd

If you need further help, please post the code you are working with instead
of having us guess.
 
G

Guest

Thanks for the answer.

My BAT file (A.BAT) only consisted of two rows

kix32.exe sleep.scr
net use m: ...........

Clippan
 
A

Al Dunbar

As Todd had hinted, create B.Bat containing this command:

start "" /min a.bat

When you invoke b.bat, it will start a.bat in a separate window that is
minimized. Once it starts that window, it exits and its own window
disappears.

/Al
 
H

Herb Martin

Al Dunbar said:
As Todd had hinted, create B.Bat containing this command:

start "" /min a.bat

What's the story on the ""-empty-double-quotes as parameters to
the start itself?
 
F

foxidrive

What's the story on the ""-empty-double-quotes as parameters to
the start itself?

Start uses the first quoted text as the titlebar title.
That saves having a quoted "path\file.exe" end up in your titlebar.
 
H

Herb Martin

foxidrive said:
Start uses the first quoted text as the titlebar title.
That saves having a quoted "path\file.exe" end up in your titlebar.

Didn't know that. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top