Jump to content

How would one extract data from LNK file


MrBo
 Share

Recommended Posts

So creating a Windows shortcut is easy enough to do.

But is there a simple way of extracting the data from a windows shortcut (LNK file) using AutoIT?

I have searched through the forums, and on google, but have yet to find a method to do this (well - one that doesn't involve C++ programing knowledge)

I know I can execute a LNK using ShellExecute, but for my project, I would prefer to be able to call the EXE directly (and be able to pull the icon for the program also)

Can anyone shed any light on if this is possible?

Cheers

Jim

Link to comment
Share on other sites

Hi, in AutoIt help file under "File, Directory and Disk Magement" -> FileGetShortcut() function will give you exactly what you need.

Cheers

@smashly - Thank you very much - I don't know why I didn't find that when I was searching. :-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...