Re: How to create a relative shortcut ?
Zaidy036 <[email protected]> Wed, 3 Sep 2025 22:00:14 -0400
| 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 9/2/2025 5:36 AM, R.Wieser wrote: > Hello all, > > I'm trying to create relative shortcuts* (for use on a removable USB > harddisk) and can't seem to find out how it works. > > * the target of the link is relative to the location of the link itself. > > I'm programming against the IShellLink interface ( > https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-ishelllinka) , > which suggests a relative path is possible (SetRelativePath), but I'm not > able to get it to work or find code explaining how to do it. > > I did find this : > https://devblogs.microsoft.com/oldnewthing/20171019-00/?p=97247 , but I'm > not even sure if that is what I'm after ... :-| > > Question: does someone have an example to what I'm supposed to do to make it > happen ? > > Regards, > Rudy Wieser > For Win 11: Make a batch file that has a list of the items you want to find. Manually select the item and have batch enter its name into "Quick Search" in task bar and followed with a CR and search result will include present location of the item