Sign in to follow this  
Followers 0
sshrum

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

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

TIA

Sean Shrum

http://www.shrum.net


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



#2 ·  Posted (edited)

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

#57181

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  
Followers 0