Share this page

# TC.scriptDir

Returns the user script folder. You can store external files in the script folder. When you want to include them in your script, append the file name of the external file to the value returned by TC.scriptDir.

    TC.scriptDir();

## Arguments

None

## Return value

A promise that is fulfilled with a string upon success. The returned path includes the last folder separator.

## Example

Copy code

    (async ()=>{
        let dir = await TC.scriptDir();
    })();

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: