Minimize a window

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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
 
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].
 
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
 
Back
Top