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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
webwolve
Posts: 1
Joined: 30 May 2008 12:58

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

#1 Post by webwolve » 30 May 2008 13:13

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.

dizze
Posts: 10
Joined: 12 Jul 2006 07:53
Contact:

#2 Post by dizze » 05 Jun 2008 08:36

you can use

Code: Select all

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


to run your batch file minimised.

Dizz-E

drgnfyre
Posts: 2
Joined: 16 Jun 2008 15:38

#3 Post by drgnfyre » 16 Jun 2008 15:46

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).

Thebetr1
Posts: 12
Joined: 30 Jun 2008 02:50
Location: My computer
Contact:

#4 Post by Thebetr1 » 30 Jun 2008 03:24

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


Post Reply