Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


How to change path of icon on desktop with using notepad

  • Please log in to reply
1 reply to this topic

#1 Techindiaengineers


  • Members
  • 47 posts
  • Local time:01:39 AM

Posted 16 December 2008 - 08:01 AM

anyone know how to change all the paths of desktop icons by using just notepad.
I mean i use notepad and type in a code and then double click it and it changes all the icons on desktop to that path. Is it possible?

BC AdBot (Login to Remove)


#2 Andrew


    Bleepin' Night Watchman

  • Moderator
  • 8,260 posts
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:12:09 PM

Posted 16 December 2008 - 01:57 PM

I think what you're asking is how to use a batch script to change the icons on your desktop? I'm not too familiar with using batch scripts for that reason, though it may be possible.

You may want to look into VB Script, a more powerful scripting language than batch.

Something like this, I think:

Set objShell = WScript.CreateObject("WScript.Shell") 
strDesktopFld = objShell.SpecialFolders("Desktop") 
Set objURLShortcut = objShell.CreateShortcut(strDesktopFld & "\blah.exe") 
objURLShortcut.TargetPath = "http://www.blah.com" 
objURLShortcut.IconLocation "C:\MyIcons\icon.ico 

But don't quote me on that.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users