Macro Name: @ScriptDir
Returns the folder path of currently running script or compiled executable.
Example:
Returns the folder path of currently running script or compiled executable.
Example:
#include <MsgBoxConstants.au3>
;Display script/ executable folder path
MsgBox($MB_SYSTEMMODAL, "Script Directory", @ScriptDir)
;Display script/ executable folder path
MsgBox($MB_SYSTEMMODAL, "Script Directory", @ScriptDir)
- AutoIt - Get Script Name (Process Name)
- AutoIt - Get Script (or Executable) Path Including Script Name
- AutoIt - Get Script Line Number Being Executed
- AutoIt - Get Current Working Directory
- AutoIt - Get Process ID (PID) of Current Script or Executable
Interesting? Share and Let Others Know.
Post a Comment