Closing/Minimizing/Maxmizing all windows through command prompt?

D

deostroll

Is there a command prompt equivalent for closing, minimizing, or
maximizing all winodws (running programs)?
--deostroll
 
K

Kelly

Sub Main
Dim Result As Integer

StartApplication "cmd"

Window SetContext, "Caption=C:\WINNT\system32\cmd.exe", ""

' Here is missing a line of code
End Sub

To complete the script, insert one of the following lines where it is
missing.

To Minimize the window:
Window WMinimize, "Caption=C:\WINNT\System32\CMD.EXE", ""

To Maximize the window:
Window WMaximize, "Caption=C:\WINNT\System32\CMD.EXE", ""

To Close the window:
Window CloseWin, "Caption=C:\WINNT\System32\CMD.EXE", ""

http://www-1.ibm.com/support/docview.wss?uid=swg21129984


CMDOW - http://www.commandline.co.uk/cmdow/

--

All the Best,
Kelly (MS-MVP/DTS&XP)

Taskbar Repair Tool Plus!
http://www.kellys-korner-xp.com/taskbarplus!.htm
 

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