# getdir

Gets the current working directory for MACRO.

    getdir <strvar>

## Remarks

Returns the current working directory for MACRO (not for Tera Term) to the string variable <strvar>.
If the directory is the root, the string ends with a backslash(\). If the directory is a directory other than the root, the string ends with the directory name and not with a backslash.

## Example

    getdir dir
    ; dir = C:\Documents and Settings\yutaka\My Documents\TeraTermMacro

## See also

- "setdir"