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