Modifying Windows Shortcut .lnk file

Posted by user13267 on Super User See other posts from Super User or by user13267
Published on 2012-11-21T12:47:53Z Indexed on 2012/11/21 23:02 UTC
Read the original article Hit count: 193

Filed under:
|

here> as it's locked over there; I hope it belongs in this forum;

Is it possible to open .lnk (windows shortcut) in a hex editor, and change the absolut shortcut path into a relative one? Can we do this is 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 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

© Super User or respective owner

Related posts about Windows

Related posts about shortcuts