Minimize .bat file?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Thanks for the answer.

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

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

Clippan
 
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
 
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?
 
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.
 
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.
 
Back
Top