Page 1 of 1

Can I minimize a batch window from inside the batch file?

Posted: 30 May 2008 13:13
by webwolve
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.

Posted: 05 Jun 2008 08:36
by dizze
you can use

Code: Select all

start /min cmd /c your-batch-file.bat


to run your batch file minimised.

Dizz-E

Posted: 16 Jun 2008 15:46
by drgnfyre
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).

Posted: 30 Jun 2008 03:24
by Thebetr1
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