Change shortcut's target

Jan 15, 2017 at 5:05pm
Hello, is there any way to change shortcuts' target?
Thanks in advance!
Jan 27, 2017 at 12:15am
It is possible. Shortcuts, internally, are just a file type containing data about the shortcut and are just handled by windows as shortcuts. If you open it with an editor you should be able to view the structure of it.
Feb 5, 2017 at 11:27pm
and I think the path piece is actually text, or it used to be. But parts of the shortcut are binary, also from memory. Surely there is a format for the file out there in the web...
Feb 6, 2017 at 6:22am
closed account (E0p9LyTq)
Shell Link (.LNK) Binary File Format:
https://msdn.microsoft.com/en-us/library/dd871305.aspx

A quick glance at the specification shows a shortcut is not something easy-peasy to change.
Feb 6, 2017 at 11:19am
Why do you want to change an existing shortcut?
Why not delete it and create a new one with a new target?
Feb 8, 2017 at 5:55am
It is quite easy to manipulate shortcuts using IShellLink COM interface:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb774950(v=vs.85).aspx
Topic archived. No new replies allowed.