🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual
Article #135

Re: how to get path,file name from shortcut lnk file,help

#135
From: banfield
Date: Mon, 07 Feb 2000 00:00
24 lines
1964 bytes
I recall seeing the answer to this at http://www.mvps.org/vbnet/

Has lots of good stuff.
-Drew

Paul Norrish wrote:
> 
> Before opening a file I have to find out its name and location, because in
> some cases the user selects a shortcut file (*.lnk) instead of the data file
> itself.
> 
> When I fire the Open statement with the *.lnk filename I don't get the
> target file opened but the shortcut only.
> 
> Is there some kind of "indirect open" statement, solving the shortcut? Or is
> there an API to solve the shortcut, i.e. with the lnk filename as an
> argument and returning the target filename?
> 
> Somewhere I found a format description of "The Windows Shortcut File Format
> as reverse-engineered by Jesse Hager" which I will use if there is no easier
> way.
> 
> Paul
> please email me
Technical Details
Message-ID: <389EB8B3.AD22BFB6@sedate.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <_Win4.63005$A5.1193600@news1.rdc1.bc.home.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5f6f,3cba51c967e7c99
X-Google-Attributes: gidf5f6f,public
X-Google-Thread: 108062,3cba51c967e7c99
X-Google-Attributes: gid108062,public
X-Google-Thread: 110e3b,3cba51c967e7c99
X-Google-Attributes: gid110e3b,public
X-Google-Thread: f645d,3cba51c967e7c99
X-Google-Attributes: gidf645d,public
From: banfield <drew@sedate.com.au>
Subject: Re: how to get path,file name from shortcut lnk file,help
Date: 2000/02/07
Message-ID: <389EB8B3.AD22BFB6@sedate.com.au>
X-Deja-AN: 582618769
Content-Transfer-Encoding: 7bit
References: <_Win4.63005$A5.1193600@news1.rdc1.bc.home.com>
To: Paul Norrish <pnorrish@home.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@labyrinth.net.au
X-Trace: arachne.labyrinth.net.au 949926095 36754 202.182.81.7 (7 Feb 2000 12:21:35 GMT)
Organization: Labyrinth Connections Pty Ltd
Mime-Version: 1.0
Reply-To: drew@sedate.com.au
NNTP-Posting-Date: 7 Feb 2000 12:21:35 GMT
Newsgroups: comp.lang.basic.visual,comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.misc,cz.comp.lang.basic.visual