RE: HOW TO find the target file name of a lnk file via an API ?

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

From: Perry (Perry_at_discussions.microsoft.com)
Date: 03/16/05


Date: Wed, 16 Mar 2005 00:37:03 -0800

Thxs

"John L Veazey" wrote:

> Try this link. It shows several examples of how to deal with shortcuts using
> VBScript and JScript. The source in the examples for VBScript should work in
> VB6, as well.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vtoriVBScript.asp
>
> --
> John Veazey
>
> "Perry" wrote:
>
> > This is exactly what I want to know. However, I know VB6 more than C and I
> > dont know VB that well.
> > I'm looking to call a routine from my VB6 program with the full path & name
> > of the shortcut/lnk file and want returned the target, in your example
> > "path"\myfile.exe
> > Is there any possability you might have something which I can use.
> > Appreciate anything.
> > Cheers
> > P
> >
> > "BlackSabbath" wrote:
> >
> > >
> > > Hi,
> > >
> > > I have a file "shortcut to MyFile.exe.lnk" in the startup directory
> > >
> > > How to find, via an windows API, the name of the target file ?
> > > (here "MyFile.exe")
> > >



Relevant Pages

  • Re: Object Rexx to become Open Source
    ... Granted WSH is not a language. ... >> up quickly, then the knock against JScript would be that, because it is ... never said that JScript was bad or even not as good a language as VBScript; ... But our official standard scripting language for such things as logon ...
    (microsoft.public.scripting.wsh)
  • VBScript/JScript comparison
    ... differences between VBScript and JScript. ... reference types (objects, arrays, functions) are always passed by reference. ... Enumerator object's itemmethod. ...
    (microsoft.public.scripting.wsh)
  • Re: VBScript/JScript comparison
    ... > differences between VBScript and JScript. ... > Enumerator object's itemmethod. ... > primitive types are based on intrinsic objects that can be extended. ...
    (microsoft.public.scripting.wsh)
  • Re: Object Rexx to become Open Source
    ... We were talking "languages", WSH is just an interface to the o/s. ... > as provided by some other scripting languages, I have found it a significant ... source" on any of their pages and you'll see it's JScript all the way. ... also can't imagine using VBScript for XML?? ...
    (microsoft.public.scripting.wsh)
  • Re: Object Rexx to become Open Source
    ... If standards don't matter too much ... VBScript, but both Visual Basic and VBA are dead! ... One other thing you can do in JScript is comment out huge blocks of code ... server, you just put the module with your code and off you go. ...
    (microsoft.public.scripting.wsh)