[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1635
  • Last Modified:

ToggleDesktop - how to trigger it

If I follow through the 'ToggleDesktop' shortcut it leads to this script/content/ini file (?what is it?)

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

My question is:
- Is it a script or what is it?
- How can I run it (manually / from the cmd line, apart from clicking on the icon)
- How can I run it from within a program?

TIA
0
flashdriver
Asked:
flashdriver
1 Solution
 
jkrCommented:
This actually is the content of 'DESKTOP.SCF' (a Shell Command File)  - the file that is associated with the 'Show Desktop' icon in your QuickLaunch bar. To invoke that file, you need a little workaround - create a .lnk file (shell link) to the .scf file and run that one using

start desktop.lnk
0
 
BeyondWuCommented:
it's actually a function of IShellDispatch4 interface
You can trigger it as following:http://blogs.msdn.com/robgruen/archive/2004/02/24/79294.aspx
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now