Base Scripting Language GuidePascal-Library Custom Scripting FunctionsChrDirOn this pageChrDirChanges the current directory. Structure ChDir(S: string); Parameters Description ChDir changes the current directory to the path specified by S. If S includes a drive letter, the current drive is also changed.