February 9, 200521 yr 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)
February 9, 200521 yr DEL /Q "%UserProfile%\desktop\internet explorer.lnk"DEL /Q "%AllUsersProfile%\desktop\internet explorer.lnk"
February 9, 200521 yr 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.
February 9, 200521 yr probably mct don't remove it ;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
February 9, 200521 yr 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.
February 9, 200521 yr probably mct don't remove it ;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:00000001thats correct, i dont
February 9, 200521 yr 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*
February 9, 200521 yr Author ok, im getting all newbie in this post - how do i modify those lines via batch file, and not reg file?
February 9, 200521 yr @ a06lpUse 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 1REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\HideDesktopIcons\NewStartPanel /v "{871C5380-42A0-1069-A2EA-08002B30309D}" /t REG_DWORD /d 1Note there are 2 lines only, just copy & paste them
February 9, 200521 yr Author @ a06lpUse both the following in a batch /cmd file or just the one you want.Thanks, worked like a charm.
Create an account or sign in to comment