1 | initial version |
You can use the built-in variable A_ScriptFullPath
to obtain the full path and filename of the currently executing script.
To obtain the path of the folder containing the script, you can use the SplitPath
command with the dir
option.
Here's an example:
SplitPath, A_ScriptFullPath, , , dir
MsgBox, % "Current folder: " . dir . "`nCurrent file: " . A_ScriptFullPath
This will display a message box with the current folder path and the full path and filename of the script.