1.

Solve : Batch Desktop Command?

Answer»

Hey. I was wondering if anyone knows a batch script that will show your DESKTOP and minimize all programs. Thanks in advance for ANYONES helpFor batch code normally rundll32 can be helpful, but I had zero luck. This short little snippet will minimize all the open windows:

Code: [Select]Set objShell = CreateObject("Shell.Application")
objShell.MinimizeAll

In case you're wondering, this little snippet will undo the previous script:

Code: [Select]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.vbs

Good luck.  Thank you very much for your help. It works fine.



Discussion

No Comment Found