Can I minimize all open windows from DOS?

anyone seen any ways to minimize all or Show Desktop from DOS?  I've checked the Show Desktop icon properties out, but it doesn't seem to relate to a specific app, so I think it must be some form of internal command.  

this needs to be on all open apps, so START /MIN won't help...
LVL 23
Danny ChildIT ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael PfisterCommented:
create a small 2 liner VBScript Minimize.vbs:

Set wshshell = CreateObject("Shell.Application")

and run it with

cscript minimize.vbs

Hope it helps,


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This does the trick my creating a explorer script file:

@echo off

>temp.scf echo [Shell]
>>temp.scf echo Command=2
>>temp.scf echo [Taskbar]
>>temp.scf echo Command=ToggleDesktop

explorer temp.scf

Good Luck,
Danny ChildIT ManagerAuthor Commented:
cheers guys.
the vbs worked like a dream, and was the first answer, so I went for that one.
the scf was something that I'd never seen before - it worked tho.

I poked about in the scf file, which contained
when I opened it with notepad.  Any probs with doing this, rather than creating it with the Echo, or are you just being OldSkool, Steve?!?

it also triggered a windows security warning - fixable?
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

No problem using notepad. I'm old school and like creating it on the fly :)
Michael PfisterCommented:
Steve, I've never seen this ".scf"-stuff. Do you have a link for some more informations on it? Thanks!

And, thanks for the points, dabch99
I just looked at the shortcut button to see how it worked. I tried to find more information on this feature but could only come up with this:
Michael PfisterCommented:
Steve, thanks for the link ...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.