'Need help in editing .lnk files?
I have been searching for a solution to a problem and came across a post answered by JasonMArcher and wonder if I could be more specific as to my needs.
We have recently changed to a new server and because of a change in it's name from //sbcmaster to //sbcserver1 I have a huge problem where I have hundreds of .lnk files need to be edited so that the shortcut retrieves the document.
The question is - Is it possible to automate this process?
Appreciation in advance!!
Mark
Solution 1:[1]
If you use run/cmd you can edit the filename (with rename). Then a friendly editor like Notepad++ will open that file. You can see the text, and there will also be a lot of NULLs. You can edit the text. Then you can save the file, and then change the name back with rename. Good luck.
Solution 2:[2]
The Microsoft documentation for Shell Links points to the IShellLink::GetPath and IShellLink::SetPath functions.
Solution 3:[3]
The utility Shortcuts Search And Replace can be used for that.
It allows to find .lnk files and to replace their target name or path.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Therese |
| Solution 2 | Mark Ransom |
| Solution 3 | JBress |
