Re: How to create a relative shortcut ?

"J. P. Gilliver" <[email protected]> Thu, 4 Sep 2025 02:04:27 +0100
Newsgroups comp.os.ms-windows.programmer.win32,alt.comp.os.windows-xp,alt.windows7.general
Organization 255 software
Message-ID <[email protected]>
On 2025/9/3 14:17:47, Paul wrote:
> On Wed, 9/3/2025 3:47 AM, R.Wieser wrote:
>> Paul,
>>
>>> A shortcut is designed to be copied or moved anywhere.

_If_ it has an *absolute* path in "Target" (and in "Start in" if that's
relevant). Which it _will_, if it's made by the usual "make shortcut"
method.

[]


> There is a feature called "AppPath" or so, where executables not
> in the regular path environment variable, are stored in the Registry.

That's fine on one computer.

[]

My understanding is that Rudy wants to have (for example):

	a\b\shortcut.lnk

that points to

	a\c\target.exe

[I have _deliberately_ *not* put anything before "a", because it could
be in the root, or a subdirectory]

and, to be able to move/copy directory a (and its subfolders b and c) to
anywhere (including an external drive and/or another computer where no
"AppPath" has been invoked), and still have the shortcut find the target.

[I would have thought changing the absolutes in the shortcut to Target:
..\c\target.exe, and Start in: to ..\c, from whatever creating the
shortcut had put there, would work, but I haven't tried.]
-- 
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

"Get off my turf!" screamed Pooh, as he shot at Paddington.