Jump to content

Commandline for "show desktop icons"


clavicle

Recommended Posts

Can someone please tell me what commandline can be used to access the same as achieved by Right Click (on desktop) > Arrange Icons by >Show Desktop Icons

I need it to assign a shortcut to my keyboard to toggle hide and show desktop icons especially when the desktop is cluttered!

Thanks in advance!

Link to comment
Share on other sites


As far as I know there isn't one.

From the registry, the keys changed are

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\Components]
"RestrictChannelUI"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"ShellState"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"HideIcons"

The RestrictChannelUI hex value is set for 'hidden' and removed for 'shown'.

The ShellState hex value data will be different for some users, therefore no one size fits all, on top of that it is the third pair which changes in the hex code for the toggle.

The HideIcons dword is a simple change between 0, (shown), and 1, (hidden).

Additionally the registry changes would require a reboot of explorer.exe to take effect

Link to comment
Share on other sites

Thanks Yzöwl! I also tried the keys, but as you mentioned a reboot is needed.

I searched and found a reference at http://www.mcse.ms/message1739106.html but still I am unable to get the thing working. So maybe a little modification in this script or a script of autoit can do it. But I am bad at computer languages.

I shall keep trying!

Thanks anyway!

:no:

Link to comment
Share on other sites

  • 3 weeks later...

You would have to hack shell32.dll

This is part one

215 MENUEX

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

{

POPUP "", 0, MFT_STRING, MFS_ENABLED, 0

{

POPUP "&View", 28674, MFT_STRING, MFS_ENABLED, 0

{

  MENUITEM "Filmstri&p", 28719, MFT_STRING, MFS_ENABLED

  MENUITEM "T&humbnails", 28717, MFT_STRING, MFS_ENABLED

  MENUITEM "Tile&s", 28718, MFT_STRING, MFS_ENABLED

  MENUITEM "Ico&ns", 28713, MFT_STRING, MFS_ENABLED

  MENUITEM "&List", 28715, MFT_STRING, MFS_ENABLED

  MENUITEM "&Details", 28716, MFT_STRING, MFS_ENABLED

}

MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED

POPUP "Arrange &Icons By", 28673, MFT_STRING, MFS_ENABLED, 0

{

  MENUITEM "", 30208, MFT_SEPARATOR, MFS_ENABLED

  MENUITEM "Show in &Groups", 30209, MFT_STRING, MFS_ENABLED

  MENUITEM "&Auto Arrange", 28753, MFT_STRING, MFS_ENABLED

  MENUITEM "A&lign to Grid", 28756, MFT_STRING, MFS_ENABLED

}

MENUITEM "R&efresh", 28931, MFT_STRING, MFS_ENABLED

MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED

MENUITEM "Customize This &Folder...", 28722, MFT_STRING, MFS_ENABLED

MENUITEM "", 65535, MFT_SEPARATOR, MFS_ENABLED

MENUITEM "&Paste", 28698, MFT_STRING, MFS_ENABLED

MENUITEM "Paste &Shortcut", 28700, MFT_STRING, MFS_ENABLED

MENUITEM "&Undo", 28699, MFT_STRING, MFS_ENABLED

}

}

This is part two
218 MENUEX

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

{

POPUP "", 0, MFT_STRING, MFS_ENABLED, 0

{

MENUITEM "Show &Desktop Icons", 29698, MFT_STRING, MFS_ENABLED

MENUITEM "Lock Web &Items on Desktop", 29699, MFT_STRING, MFS_ENABLED

MENUITEM "&Run Desktop Cleanup Wizard", 29700, MFT_STRING, MFS_ENABLED

}

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...