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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-04-30 23:49:31 +0000
Seen: 17 times
Last updated: May 01 '23
How can you switch from one opened Excel application to another using VBA?
How can I avoid importing non-existent data files in a loop?
When using Polars and Glob to read Parquet from S3, why does it only read the first file?
What is the process for adding a class path permanently to the Mac terminal?
Why isn't the CSS background image being displayed?
What are the steps to install Homebrew in the /opt/ directory?
How can I insert a file path into Tkinter through drag and drop function?
What is preventing me from adding new static files to my springboot web application?