$scriptdir » History » Version 2
Per Amundsen, 08/06/2015 03:24 AM
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$scriptdir* |
||
| 4 | |||
| 5 | Returns the directory of the currently executing script. |
||
| 6 | |||
| 7 | 2 | Per Amundsen | _Can be used inside text._ |
| 8 | 1 | Per Amundsen | |
| 9 | *Example* |
||
| 10 | |||
| 11 | <pre> |
||
| 12 | ; Print the script directory. |
||
| 13 | //echo -ag current scriptdir is $scriptdir |
||
| 14 | |||
| 15 | ; Print the script directory inside text. |
||
| 16 | //echo -ag $scriptdir\somefile.ini |
||
| 17 | </pre> |