Jump to content

Recommended Posts

Posted

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!


Posted

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

Posted

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:

  • 3 weeks later...
Posted

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

}

}

Posted

i dono this,but is it possible to run shortcut keys using command prompt.bcz combination of windowskey+M will show u the desktop.is it possible with cmd?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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