Minimize a window

G

Guest

Hi. Does anyone know if there is a way to minimize an active window using a
command within a batch file? I know I can run a program minimized using the
START /MIN command, but I am looking to minimize a window (program) that has
already been started. Thanks.
 
T

Torgeir Bakken \(MVP\)

Agent414 said:
Hi. Does anyone know if there is a way to minimize an active window using a
command within a batch file? I know I can run a program minimized using the
START /MIN command, but I am looking to minimize a window (program) that has
already been started. Thanks.
Hi

The free command line tool Cmdow.exe can do that:

http://www.commandline.co.uk/cmdow/index.html
 
P

Paul R. Sadowski [MVP]

Hello, Agent414:
On Mon, 7 Mar 2005 18:41:01 -0800: you wrote...

A> Hi. Does anyone know if there is a way to minimize an active window
A> using a command within a batch file? I know I can run a program
A> minimized using the START /MIN command, but I am looking to minimize a
A> window (program) that has already been started. Thanks.

http://www.paulsadowski.com/WSH/cmdprogs.htm

Max.exe, Min.exe, Norm.exe
These programs change the console window's current state (maximize,
minimize, normal). They have no effect in full-screen mode.


Regards, Paul R. Sadowski [MVP].
 
M

Matthias Tacke

Agent414 said:
Hi. Does anyone know if there is a way to minimize an active window using a
command within a batch file? I know I can run a program minimized using the
START /MIN command, but I am looking to minimize a window (program) that has
already been started. Thanks.

And another one from F.P.Westlake
Hosted by Ted Davis: http://gearbox.maem.umr.edu/fwu/

C:\>ShowConsole.exe /?
Version 0.52, Copyright (C)2002, Frank P. Westlake.
Sets or gets the state of the console window.

ShowConsole [ TOP | SHOW | HIDE | MINIMIZED | MAXIMIZED | NORMAL ]

TOP Brings the window to the foreground if it is not hidden and not
minimized.
SHOW Returns a hidden window to its visible NORMAL, MINIMIZED, or
MAXIMIZED state.
HIDE Hides the window and its taskbar icon. If the console is not
subsequently EXIT'ed, the window should later be restored with
either 'ShowConsole SHOW' or 'ShowConsole NORMAL'.
MINIMIZED Minimizes the window.
MAXIMIZED Maximizes the window.
NORMAL Sets the window to its normal state.

If one of the above parameters is not specified then the current state is
printed as one of the following strings:

Window is visible Window is hidden
NORMAL HIDDEN-NORMAL
MINIMIZED HIDDEN-MINIMIZED
MAXIMIZED HIDDEN-MAXIMIZED

ERRORLEVELS: 0=SUCCESS 1=FAILURE

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top