Can I minimize a batch window from inside the batch file?
Moderator: DosItHelp
Can I minimize a batch window from inside the batch file?
I have an app that cannot run the bat file minimized, so I'd like to minimize the window from inside the bat file itself. Is this possible? Thanks.
you can use
to run your batch file minimised.
Dizz-E
Code: Select all
start /min cmd /c your-batch-file.bat
to run your batch file minimised.
Dizz-E
You can also use a utility called cmdow - just google it.
It can minimize your batch window, resize it, lock it, etc. It can actually do this for just about any window, but it's really nice for batch files.
Be aware though - some antivirus programs will classify this as a spyware type program (I think there was some spyware that used this a while back to hide it's window).
It can minimize your batch window, resize it, lock it, etc. It can actually do this for just about any window, but it's really nice for batch files.
Be aware though - some antivirus programs will classify this as a spyware type program (I think there was some spyware that used this a while back to hide it's window).
You can make the batch file reopen itsself. eg:
Code: Select all
@echo off
if "%1"=="done" goto runtime
start "" /min %0 done
exit
:runtime
title Testing 1 2 3 ...
echo bla bla
echo.
pause
exit