I have hundreds of shortcuts to websites where the target looks like this:
C:\Users\Herb\AppData\Local\Google\Chrome\Application\chrome.exe www.somesite.com/foo
I just upgraded to Windows 8, and the Chrome executable is now stored in Program Files; so to get these shortcuts to work, I have to change them to this:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" www.somesite.com/foo
Is there any way I can automate this change? I'm a programmer but haven't done much with Windows scripting.
Best Answer
I recently found myself with a similar issue, and decided to script modification of the links as originally requested. Perhaps someone else will find this useful. This is a PowerShell script based on a previously mentioned link, but has some improvements (only triggers on the leading path name, modifies the existing link instead of deleting/creating, has a dry-run mode, etc).
I'm not particularly knowledgeable when it comes to PowerShell, so I welcome any suggestions for improvement: