Jump to content
Sign in to follow this  
sstouk

Name and Path of a shortcut

Recommended Posts

sstouk

I am currently building a small system that would use Windows shortcuts with parameters to start AutoIt compiled executable.

Is there a way from within the AutoIt to automatically get the path and the name of a shortcut, that started the compiled AutoIt script?

Any ideas how I could do it?

Thank You.

Share this post


Link to post
Share on other sites
BigDod

I am currently building a small system that would use Windows shortcuts with parameters to start AutoIt compiled executable.

Is there a way from within the AutoIt to automatically get the path and the name of a shortcut, that started the compiled AutoIt script?

Any ideas how I could do it?

Thank You.

You could try looking at the @ScriptFullPath macro in the help file.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
seandisanti

You could try looking at the @ScriptFullPath macro in the help file.

actually i think that he's talking about how to send the name of the shortcut calling the executable. using shortcuts i'm not sure how you would do it, but you can make your own shortcuts with autoit that just use Run() to call the executable, passing @ScriptFullPath as a command line parameter...

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  

×