🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#134
From: Paul Norrish
Date: Sun, 06 Feb 2000 00:00
17 lines
1681 bytes
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: <_Win4.63005$A5.1193600@news1.rdc1.bc.home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5f6f,3cba51c967e7c99,start
X-Google-Attributes: gidf5f6f,public
X-Google-Thread: 108062,3cba51c967e7c99,start
X-Google-Attributes: gid108062,public
X-Google-Thread: 110e3b,3cba51c967e7c99,start
X-Google-Attributes: gid110e3b,public
X-Google-Thread: f645d,3cba51c967e7c99,start
X-Google-Attributes: gidf645d,public
From: "Paul Norrish" <pnorrish@home.com>
Subject: how to get path,file name from shortcut lnk file,help
Date: 2000/02/06
Message-ID: <_Win4.63005$A5.1193600@news1.rdc1.bc.home.com>
X-Deja-AN: 582331215
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Complaints-To: abuse@home.net
X-Trace: news1.rdc1.bc.home.com 949861178 24.113.95.42 (Sun, 06 Feb 2000 10:19:38 PST)
Organization: @Home Network Canada
X-MSMail-Priority: Normal
NNTP-Posting-Date: Sun, 06 Feb 2000 10:19:38 PST
Newsgroups: comp.lang.basic.visual,comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.misc,cz.comp.lang.basic.visual