RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.ChDir Function

Changes the current directory.

Pascal
procedure ChDir(const S: string); overload;
procedure ChDir(P: PChar); overload;
C++
ChDir(const AnsiString S);
ChDir(const char * P);

System

Note: ChDir changes the current directory to the path specified by S or P. If this operation fails, EInOutError is raised.
Note: On Windows, the path can include a drive specifier, which causes the current drive to be changed as well.
Note: In Delphi, {$I+} handles runtime errors using exceptions. When using {$I-}, use IOResult to check for an I/O error.
 

GetDir 

MkDir 

RmDir 

SetCurrentDir 

EInOutError

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!