a06lp Posted February 9, 2005 Share 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) Link to comment Share on other sites More sharing options...
MCT Posted February 9, 2005 Share Posted February 9, 2005 DEL /Q "%UserProfile%\desktop\internet explorer.lnk"DEL /Q "%AllUsersProfile%\desktop\internet explorer.lnk" Link to comment Share on other sites More sharing options...
prathapml Posted February 9, 2005 Share 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. Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted February 9, 2005 Share 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 Link to comment Share on other sites More sharing options...
a06lp Posted February 9, 2005 Author Share Posted February 9, 2005 huh? can you post the code just to remove the ie desktop shortcut? Link to comment Share on other sites More sharing options...
durex Posted February 9, 2005 Share 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. Link to comment Share on other sites More sharing options...
MCT Posted February 9, 2005 Share 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 Link to comment Share on other sites More sharing options...
prathapml Posted February 9, 2005 Share 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* Link to comment Share on other sites More sharing options...
durex Posted February 9, 2005 Share Posted February 9, 2005 Link to comment Share on other sites More sharing options...
a06lp Posted February 9, 2005 Author Share 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? Link to comment Share on other sites More sharing options...
Yzöwl Posted February 9, 2005 Share 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 Link to comment Share on other sites More sharing options...
a06lp Posted February 9, 2005 Author Share Posted February 9, 2005 @ a06lpUse both the following in a batch /cmd file or just the one you want.Thanks, worked like a charm. Link to comment Share on other sites More sharing options...
muiz Posted April 29, 2005 Share Posted April 29, 2005 Doesnt work for me , Dutch XP Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now