Sign in to follow this  
Followers 0

Launching application via shortcut

3 posts in this topic

First time autoIT user, long time regression tester.

I wrote a script to install an application and had AutoIT create a LNK file on the desktop to one of the associated files of said program.

What I can't figure out is how to launch the lnk file. This *should* launch the associated application with the file that the LNK points to. Granted, me double-clicking the LNK does exactly that.

I even tried to do a direct 'c:\program.exe' via run() with no luck.

I'm doing this worng. Someone please correct me.


Sean Shrum

Sean Shrum ::

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'


Share this post

Link to post
Share on other sites

#2 ·  Posted (edited)

ShellExecute user-defined function should let you run LNK files or files if the file association was created.


Run('c:\program.exe') should work, although you might need to specify the full path to OR call FileChangeDir before Run.

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post

Link to post
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
Sign in to follow this  
Followers 0