Show: Object Pascal C++
Display Preferences

System.ChDir

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure ChDir(const S: string);
procedure ChDir(P: PChar);

C++

extern DELPHI_PACKAGE void __fastcall ChDir(const UnicodeString S)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.pas
System.hpp
System System

Description

Changes the current directory.

Note: ChDir changes the current directory to the path specified by S or P. If this operation fails, an 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 Object Pascal, {$I+} handles run-time errors using exceptions. When using {$I-}, use IOResult to check for an I/O error.

See Also


Code Examples

Personal tools
Translations