For batch code normally
rundll32 can be helpful, but I had zero luck. This short little snippet will minimize all the open windows:
Set objShell = CreateObject("Shell.Application")
objShell.MinimizeAll
In case you're wondering, this little snippet will undo the previous script:
Set objShell = CreateObject("Shell.Application")
objShell.UndoMinimizeALL
Save each script separately with a
vbs extension. They can be run from the command line as:
cscript scriptname.vbs or they can be run in Windows as:
wscript scriptname.vbsGood luck.