Groups | Search | Server Info | Login | Register
Groups > comp.os.ms-windows.programmer.win32 > #8532
| From | Schugo <schugo@schugo.de> |
|---|---|
| Newsgroups | comp.os.ms-windows.programmer.win32, alt.comp.os.windows-xp, alt.windows7.general |
| Subject | Re: How to create a relative shortcut ? |
| Date | 2025-09-06 18:58 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <109hp82$35c0o$1@dont-email.me> (permalink) |
| References | <1096dro$dnbv$1@dont-email.me> <109fcaf$2jur8$1@dont-email.me> |
Cross-posted to 3 groups.
On 05.09.2025 21:05, R.Wieser wrote: > "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. > > It looks like I ran head-first into some "over-engenering". :-( > > As I could not find any way to create a relative shortcut using the > IShellLink object, I took a better look at the Shortcut file itself. And > going on a hunch, I was able to solve the problem in the most basic way ever > : by manually creating a shortcut file. > > It turns out that writing the header with only the "HasRelativePath" flag > set and than the desired (counted-length) relative path followed by four > bytes all Zero (as the end of extras list of blocks) does the trick. > > Adding other strings (arguments, working directory, description) the same > way also works. > > One downside though : when going into the properties and changing the target > causes the shortcut to revert to its normal, absolute paths format. > > ... At least, here on my XPsp3 machine. congrats! good to know. ciao..
Back to comp.os.ms-windows.programmer.win32 | Previous | Next — Previous in thread | Find similar
How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-02 11:36 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-02 17:41 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-02 18:39 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-02 17:50 +0200
Re: How to create a relative shortcut ? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-09-03 00:34 +0100
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-03 08:15 +0200
Re: How to create a relative shortcut ? Paul <nospam@needed.invalid> - 2025-09-03 02:21 -0400
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-03 09:47 +0200
Re: How to create a relative shortcut ? Paul <nospam@needed.invalid> - 2025-09-03 09:17 -0400
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-03 16:35 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-03 16:49 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-03 19:19 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-03 21:32 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-04 07:59 +0200
Re: How to create a relative shortcut ? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-09-04 02:04 +0100
Re: How to create a relative shortcut ? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-09-03 09:02 +0100
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-03 13:26 +0200
Re: How to create a relative shortcut ? Jakob Bohm <egenagwemdimtapsar@jbohm.dk> - 2025-09-04 09:17 +0200
Re: How to create a relative shortcut ? malxau <address@is.invalid> - 2026-03-22 17:50 +0000
Re: How to create a relative shortcut ? Udo Steinbach <trashcan@udoline.de> - 2025-09-03 20:38 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-03 21:22 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-03 22:52 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-04 09:02 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-04 15:39 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-04 16:11 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-04 16:26 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-04 17:32 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-05 09:34 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-05 15:54 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-05 17:05 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-05 17:31 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-05 18:09 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-04 15:57 +0200
Re: How to create a relative shortcut ? JJ <jj4public@outlook.com> - 2025-09-04 03:03 +0700
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-03 21:54 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-04 08:22 +0200
Re: How to create a relative shortcut ? Jakob Bohm <egenagwemdimtapsar@jbohm.dk> - 2025-09-04 10:19 +0200
Re: How to create a relative shortcut ? JJ <jj4public@outlook.com> - 2025-09-04 03:01 +0700
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-04 08:50 +0200
Re: How to create a relative shortcut ? Zaidy036 <Zaidy036@air.isp.spam> - 2025-09-03 22:00 -0400
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-04 09:16 +0200
Re: How to create a relative shortcut ? "R.Wieser" <address@is.invalid> - 2025-09-05 21:05 +0200
Re: How to create a relative shortcut ? Schugo <schugo@schugo.de> - 2025-09-06 18:58 +0200
csiph-web