function SetCurrentDir(const Dir: string): Boolean;
Sets the current directory. The return value is True if the current directory was successfully changed, or False if an error occurred.