Jump to content

App.Path (obtain application's path)


 Share

Recommended Posts

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
Link to comment
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 ? :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...