Copied from here, as it's locked over there; I hope it belongs here.
Is it possible to open
.lnk (windows shortcut) in a hex editor, and change the absolute shortcut path into a relative one? Can we do this in Windows? The edit command in cmd can open link files but it's difficult to read and edit. Is there any hex editor in windows that can open an
.lnk file and allow me to edit it? Do I need to take it to Linux or does Linux recognize
.lnk as a shortcut too?
I want to do this not only for running
.exe files, but also for pointing to folders (that is, shortcut to folders). A batch file which executes
explorer.exe with the target folder as parameter can do this actually, but I want to know if there is any way to actually edit the data in the
.lnk file itself