Article View: borland.public.cppbuilder.nativeapi
Article #871Re: Is it possible to get the shortcut link file used to launch an application?
From: Remy Lebeau (TeamB)
Date: Wed, 02 Jan 2008 22:31
Date: Wed, 02 Jan 2008 22:31
28 lines
1991 bytes
1991 bytes
"const * const char ME" <smakjasdhfg@iuyd.com> wrote in message news:477c0485$1@newsgroups.borland.com... > From within a target applications code, is it possible to get > the shortcut link file used to launch the application? No. > I need to determine the shortcut link file used to launch my application. Why? What is wrong with using command-line parameters? That is why they exist. > EG: c:abc\target.exe and two shortcut links, once on the desktop > and one in the start menu, I need to be able to inside target.exe figure > out which link was used The only way is to use different command-line parameters when launching the executable. Besides, what if the user decides to delete, rename, or move the links? Then your approach would fail anyway. > or if it was launched directly from inside Windows explorer... That is also not possible without using command-line parameters. Gambit
Technical Details
Message-ID:
<477c1111$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<477c0485$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7240bb9da20048b X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <477c0485$1@newsgroups.borland.com> Subject: Re: Is it possible to get the shortcut link file used to launch an application? Date: Wed, 2 Jan 2008 14:31:04 -0800 Lines: 30 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <477c1111$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1199313169 207.178.157.90 (2 Jan 2008 14:32:49 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail