DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Api call to get target path for a given shortcut file

  1. #1
    Phani Guest

    Api call to get target path for a given shortcut file


    Hi All,

    I am wondering if you happen to know any API call that obtains the target
    path of a given .lnk (shortcut file) for me.

    For instance I'd like to be able send the API the location full path of the
    link file and get the target as a return value. Any ideas?

    Thanks,

    Phani.

  2. #2
    Eduardo A. Morcillo [MVP] Guest

    Re: Api call to get target path for a given shortcut file

    > I am wondering if you happen to know any API call that obtains the
    > target path of a given .lnk (shortcut file) for me.
    >
    > For instance I'd like to be able send the API the location full path
    > of the link file and get the target as a return value. Any ideas?


    There's no API. Windows uses an interface called IShellLink to work with
    ..lnk and .pif files. In the VB CDs there's a sample project that shows how
    to use it.

    --
    Eduardo A. Morcillo [MS MVP-VB]
    http://www.domaindlx.com/e_morcillo



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center