how to minimize my batch file window when it starts

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Mohammad_Dos
Posts: 84
Joined: 08 Sep 2010 10:25
Location: Iran,Kashan
Contact:

how to minimize my batch file window when it starts

#1 Post by Mohammad_Dos » 17 Apr 2012 13:58

how to minimize my batch file window when it starts, using a command

aGerman
Expert
Posts: 4656
Joined: 22 Jan 2010 18:01
Location: Germany

Re: how to minimize my batch file window when it starts

#2 Post by aGerman » 17 Apr 2012 14:21

Prepend that line to your code

Code: Select all

@if not defined myvar (set "myvar=a"&start /min cmd /c "%~f0" %*&goto :eof)

Regards
aGerman

Post Reply