Re: How to create a relative shortcut ?
Schugo <[email protected]> Fri, 5 Sep 2025 15:54:54 +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 05.09.2025 09:34, R.Wieser wrote:> Shugo, > > Another thing : > > [quote=you] > The magic happens after "File not found", when you point > it to the file, the .lnk is updated with realtive paths. > [/quote] > > Are you *sure* that the result is again a relative path (to the target), and > not an absolute path as it normally contains ? As the shortcut-creating > program doesn't seem to work for me, can you check ? Not at the beginning of the file, only at the optional string section RELATIVE_PATH towards the end of the file. The normal path strings at the beginning of the file are always absolute. I tried changing an absolute to a relative path by hand and it failed with file not found. But what again is your exact problem, if it works on changed drive letters and when moved to a different drive even deep down in a directory? I haven't tested it, but I'm 99% sure that it works also on a different windows installation, if that works. (my test target was 2 folders down btw, yours was in the same folder, maybe that makes a difference, if the find target (?) button is shown) ciao..