Re: How to create a relative shortcut ?

Schugo <[email protected]> Wed, 3 Sep 2025 16:49:43 +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 03.09.2025 16:35, R.Wieser wrote:

> ...
>> Or, consult the people who make portable applications, and maybe
>> they have a treatise on the subject.
> 
> Wrong focus.   Although its likely my desired relative shortcut will point 
> to an executable or two, it would also be used to point to folders, 
> textfiles and other.   Just like the current shortcut can do.

Hi!

If the file is a known filetype with a registered
standard app, then ShellExecute(...) or "start" in a .bat
should open the file just fine, even folders.
(just tried with start foldername)

ciao...