Jump to content
Sign in to follow this  

Launching application via shortcut

Recommended Posts


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 datafile.xxx' via run() with no luck.

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


Sean Shrum


Sean Shrum :: http://www.shrum.net

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

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


Run('c:\program.exe datafile.xxx') should work, although you might need to specify the full path to datafile.xxx 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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.