Re: How to create a relative shortcut ?

"R.Wieser" <[email protected]> Thu, 4 Sep 2025 08:22:03 +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]>
Shugo,

> so you have to add these 2 flags
>
> SLDF_FORCE_NO_LINKINFO
> SLDF_FORCE_NO_LINKTRACK

I did, and saw no difference.

Thats the problem with "just do it" suggestions.  Without test cases and/or 
description *when* those flags should have effect its rather hard to check 
(w|t)hat they actually do. :-(


But have you noticed this :

"Deleting those two pieces of information means that the shell cannot use 
them to help find the shortcut.

*If the file doesn't exist at the specified absolute path*,

then the relative path will be applied to the location of the shortcut 
itself, and the shell will look for the file at the resulting location"

(bolding mine)

That means that the "its now relative" trick will only work when the 
origional target file isn't there anymore.

Now imagine copying a folder-tree, containing a document and a shortcut to 
it, to somewhere else , and than double-clicking the copied shortcut to edit 
the also just copied document.

You won't like the result. :-|

Regards,
Rudy Wieser