Question Locked

execute show desktop from the command line

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi,

does anyone know how to execute the command 'Show Desktop' (windows key + D) from the command line? this would be helpful when performing remote support on users that doesn't have the 'Show Desktop' button available (in the teskbar)

6 replies

by Former member

Clarifications

by nonapeptide

:)

I'd never even thought of this before until you asked. 15 minutes of Googling netted me these search results:

http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=%22show+desktop%22+script+command+line&btnG=Search

Nothing directly answered the question, but a little bit of head scratching later, a hacky way of doing it came to my mind. Make the simple script that's mentioned in many of those links, name it [whatever].scf (I just called it SD.scf), drop it in the system32 folder, and then it's available from your command line. Just type [whatever].scf (remember to include the extension .scf) and it works!

Is that good enough?

[edited for clarity]

by lowlands

is what needs to be in your whatever.scf file

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

by nonapeptide

I'm just giving a glimpse into how I often find solutions. That's one of the first questions that I ask of someone who figured something out. "How'd you figure that out!" or "Where'd you find the answer!"

by Former member

thanks man. you're the best :)

by russb

what about show desk top command for Win NT.?

will this work?

This discussion is closed to new replies.