Using the %currentscript and %currentscriptdir Variables

Top  Previous  Next

 

The %currentscript variable is automatically populated with the full path of the currently executing script file. The %currentscriptdir variable contains the path of the parent folder.

 

These variables can be useful when your automation processes include multiple command script files that execute each other using the CALL or CHAIN commands.

 

Note: This variables are only populated while the script is executing. Their values are empty when typing commands directly into the main console window.

 

 

Related command(s): CALL, CHAIN

See also: Internal Script Variables, %currentlogfile