Re: How to create a relative shortcut ?
Schugo <[email protected]> Thu, 4 Sep 2025 16:26:22 +0200
| Newsgroups | comp.os.ms-windows.programmer.win32,alt.comp.os.windows-xp,alt.windows7.general |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
On 04.09.2025 16:11, R.Wieser wrote: > Schugo, > >> It works! >> The magic happens after "File not found", > > I already posted to you why that will not always work. > > Furthermore, what you describe is what a standard shortcut already does - > but only when you actually try to open the target, not when you read the > shortcuts stored paths. if you think so... works fine for me. BTW: here I found some source code to create a .lnk file https://github.com/ElektroStudios/Easy-Link-File-Viewer/releases/tag/v1.7 And this tool also saves the relative paths correctly. Also works with a changed drive letter. If you create a shortcut with the windows UI there are no correct relative paths, like you said. Just look with a hex editor! ciao...