How can make sure it runs minimized ?
Thanks
GuFaz
"KB" <tal...@yahoo.com> skrev i en meddelelse
news:RB029.122177$WsS....@news01.bloor.is.net.cable.rogers.com...
Add this line to the top of your batch. It should always run the batch minmized,
including from the commandline or double-clicking a shortcut. It also preserves
any commandline arguments, is stateless and allows the script to terminate as
usual:-
@set !=||(set !=1&start "%~dpnx0" /min cmd /c %0 %*&set !=&goto :eof)
I only wrote it this morning and therefore its never been used 'for real'. If you'd
rather play it safe, here's some links to previous threads:-
'Run Batch file minimized'
http://groups.google.com/groups?selm=fa516b59.02013...@posting.google.com
'DOS Batch file minimized'
http://groups.google.com/groups?selm=3bfd9fd9$0$8512$ed9e...@reading.news.pipex.net
'running NT login script minimized'
http://groups.google.com/groups?selm=achcgr$2b7h$1...@news3.infoave.net
HTH
--
Ritchie
set mail=%mail:do=%
"Ritchie Lawrence" <rlaw...@commanddoline.co.uk> wrote in message
news:3d48de9a$0$238$cc9e...@news.dial.pipex.com...