a06lp Posted February 9, 2005 Posted February 9, 2005 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)
MCT Posted February 9, 2005 Posted February 9, 2005 DEL /Q "%UserProfile%\desktop\internet explorer.lnk"DEL /Q "%AllUsersProfile%\desktop\internet explorer.lnk"
prathapml Posted February 9, 2005 Posted February 9, 2005 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.
SiMoNsAyS Posted February 9, 2005 Posted February 9, 2005 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
a06lp Posted February 9, 2005 Author Posted February 9, 2005 huh? can you post the code just to remove the ie desktop shortcut?
durex Posted February 9, 2005 Posted February 9, 2005 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.
MCT Posted February 9, 2005 Posted February 9, 2005 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
prathapml Posted February 9, 2005 Posted February 9, 2005 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*
a06lp Posted February 9, 2005 Author Posted February 9, 2005 ok, im getting all newbie in this post - how do i modify those lines via batch file, and not reg file?
Yzöwl Posted February 9, 2005 Posted February 9, 2005 @ 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
a06lp Posted February 9, 2005 Author Posted February 9, 2005 @ a06lpUse both the following in a batch /cmd file or just the one you want.Thanks, worked like a charm.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now