Sign in to follow this  
Followers 0
EvilGost

App.Path (obtain application's path)

6 posts in this topic

#1 ·  Posted (edited)

Hello AutoIt's User

I'm a newbie with AutoIt. I just want to ask you one question.

Is it possible to obtain path of the file (exe) create with autoIt after compilation?

As the App.Path with Visual Basic.

Because in my script, i'm obliged to now the path of the script:

$requete = IniRead ( "C:\Automation\Stats_Auto_Hebdo\Stats_Auto_Hebdo.ini", "RequeteAll", "Requete", "Erreur" )


and i want something like this (app.path is vb style):

$requete = IniRead ( app.path & \Stats_Auto_Hebdo.ini", "RequeteARS", "Requete", "Erreur" )

Big thanks :)

Edited by EvilGost

Share this post


Link to post
Share on other sites



Check the macros.

Did you know there's a help file?

You can find a link in the start menu.

Share this post


Link to post
Share on other sites

You can use one of the Macros, I believe it's @ScriptDir.

Share this post


Link to post
Share on other sites

yes, but how to use it?

Share this post


Link to post
Share on other sites

AutoIt has an number of Macros that are special read-only variables used by AutoIt.  Macros start with the @ character instead of the usual $ so are easy to tell apart.  As with normal variables you can use macros in expressions but you cannot assign a value to them.

..do you have a bad pirate copy of the AutoIt-manual ? :)

Share this post


Link to post
Share on other sites

Check out the readme for you bot file... It has an automation of its own, no need to recreate.

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