Name

ChDir Procedure

Syntax

procedure ChDir(const Directory: string);

Description

The ChDir procedure changes the working directory and drive to the path specified in the Directory argument. If ChDir cannot set the directory for any reason, it reports an I/O error, using the error code returned by Windows. ChDir is not a real procedure.

See Also

GetDir Function, IOResult Function, MkDir Procedure, RmDir Procedure, $I Compiler Directive, $IOChecks Compiler Directive

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.