Re: How do you FIND a desktop shortcut in VB?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jeff Johnson [MVP: VB] (i.get_at_enough.spam)
Date: 03/19/04


Date: Fri, 19 Mar 2004 14:25:13 -0500


"Don Jones" <DonJ@hotmail.com> wrote in message
news:deH6c.111631$Bz3.99296@okepread05...

> The problem with all of the Create Functions is that none of them
> open the .lnk file and parse out the fields. If you manually type
> out the file, you'll see some text mixed in with the binary data.
> It would help if I could find the data structure for the file.

It appears that you need to use the IShellLink interface to read the data in
a shortcut. Then you use its Getxxx methods to find what you're looking for.
I'm afraid this is a bit beyond me, however, so I can't get more specific
than that.



Relevant Pages

  • Re: How do you FIND a desktop shortcut in VB?
    ... >open the .lnk file and parse out the fields. ... If you manually type ... you'll see some text mixed in with the binary data. ... the sample project is for a dll, but all that's really necessary is to ...
    (microsoft.public.vb.general.discussion)
  • Dynamic Parsing of a stream of binary data
    ... I have a situation where I want to parse on the fly a stream of binary data. ... a parser that extracts the data from the que, ... How would someone go on creating a first-in first-out buffer of bytes with ...
    (microsoft.public.dotnet.general)
  • Re: Regexing null bytes
    ... > I'm trying to parse some binary data with regexes. ... > the latest Python build, but I need to run this on Python 1.5.2. ... > Jonas Galvez ...
    (comp.lang.python)
  • Re: Binary handling
    ... > I have a file of binary data. ... I want to read this file and parse the data ... The format of the file is: ... I see the struct module and the ...
    (comp.lang.python)
  • Parse shortcuts (LNK files)?
    ... Is there anyone who knows how to parse a windows shortcut (lnk file) on the ... So what I want is the sourse code for a shortcut parser, ...
    (microsoft.public.dotnet.languages.vb)