Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.comp.os.windows-xp    |    Actually wasn't too bad for a M$-OS    |    17,273 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 17,044 of 17,273    |
|    Schugo to R.Wieser    |
|    Re: How to create a relative shortcut ?    |
|    03 Sep 25 21:54:47    |
      XPost: comp.os.ms-windows.programmer.win32, alt.windows7.general       From: schugo@schugo.de              On 02.09.2025 11:36, R.Wieser wrote:       > ...       > 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 ... :-|              however, there he claims the relative path is already in any .lnk,       but not used, because LINKINFO and LINKTRACK is used first.              "Normal shortcuts already remember the target’s location relative to the       shortcut itself. However, the relative path is not used until other avenues       have been exhausted. To give the relative path more prominence, let’s disable       the other avenues."              so you have to add these 2 flags              SLDF_FORCE_NO_LINKINFO       SLDF_FORCE_NO_LINKTRACK              with              IShellLinkDataList::SetFlags       https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_cor       /nf-shobjidl_core-ishelllinkdatalist-setflags              ciao...              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca