Jump to content

How do I 'Run' a LNK (shortcut)


Recommended Posts

When I attempt to run a .LNK shortcut, AutoIt returns:

eg: Run("note.LNK","C:\")

Error: Unable to execute the external program

The system cannot find the file specified.

NB - I want to directly run the LNK shortcut directly - not to extract the terms from the LNK shortcut and execute them.

Link to comment
Share on other sites

I assume that the absence of a '\' after 'C:' is a typo. In either case,

ShellExecute("C:\note.lnk)

generates: Unknown function name

and I cannot find 'ShellExecute' in Help.

Is this a function later than the AutoIt version I am running?

Thanks for your help

IAN

Link to comment
Share on other sites

Is this a function later than the AutoIt version I am running?

ShellExecute was added first in 3.2.1.7 beta and then later it made it into the stable versions

with 3.2.2.0. None of those are new so you must be running a pretty old version of AutoIt.

The currently latest version is 3.2.4.9 so I would recommend you to download that here :

http://www.autoitscript.com/forum/index.ph...&showfile=3

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...