Jump to content

Recommended Posts

Posted

I could have sworn I had seen this discussed somewhere, but the Search turned up no results.

Anyway - how do I remove the desktop Internet Explorer desktop shortcut using a batch file? (I only want it removed in some cases, not by default - therefore I need the batch file)


Posted

DEL /Q "%UserProfile%\desktop\internet explorer.lnk"

DEL /Q "%AllUsersProfile%\desktop\internet explorer.lnk"

Posted

MCT, think again. ;) There's no such file existing!

The IE icon on desktop showing/not-showing is controlled by a CLSID in the registry. If you want to do it thru a batch-file, you can use the reg.exe command. Look in the registry tweaks thread for the relevant key.

Posted

probably mct don't remove it :P

;icons on desktop
;1:mycomp;2:mydocs;3:network;4:iexplorer
;01=hide,00=show
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000001
"{208D2C60-3AEA-1069-A2D7-08002B30309D}"=dword:00000001
"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000001
"{208D2C60-3AEA-1069-A2D7-08002B30309D}"=dword:00000001
"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000001

Posted

Simon just did... you need to use reg tweaks to do it.. check out the comments of the code he posted.. copy and paste to a reg file and make the necessary changes (show or hide). The 4th line for each of the reg keys is for IE and his code has it hidden.

Posted
probably mct don't remove it :P

;icons on desktop
;1:mycomp;2:mydocs;3:network;4:iexplorer
;01=hide,00=show
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000001
"{208D2C60-3AEA-1069-A2D7-08002B30309D}"=dword:00000001
"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000001
"{208D2C60-3AEA-1069-A2D7-08002B30309D}"=dword:00000001
"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000001

thats correct, i dont :P

Posted

Okay, everyone please remember this...

Quote only the part of the post which you are replying to. For example, in the above post, MCT could have just left the first-line and edited out all the CODE because that code is not required to convey what he's saying.

This is going to make its way into the etiquette, and anyone found not following it will be.... *secret*

Posted

@ a06lp

Use both the following in a batch /cmd file or just the one you want.

REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v "{871C5380-42A0-1069-A2EA-08002B30309D}" /t REG_DWORD /d 1
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\HideDesktopIcons\NewStartPanel /v "{871C5380-42A0-1069-A2EA-08002B30309D}" /t REG_DWORD /d 1

Note there are 2 lines only, just copy & paste them

  • 2 months later...

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...