[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'System' (#rtl) |
Change current working directory.
Source position: systemh.inc line 677
procedure chdir( |
const s: String |
); |
Chdir changes the working directory of the process to S.
Depending on the state of the \var{\{\$I\}} switch, a runtime error can be generated if there is an error. In the \var{\{\$I-\}} state, use IOResult to check for errors.
|
Create a new directory. |
|
|
Remove directory when empty. |
Program Example7; { Program to demonstrate the ChDir function. } begin {$I-} ChDir (ParamStr(1)); if IOresult<>0 then Writeln ('Cannot change to directory : ',paramstr (1)); end.
No notes exist for this page yet.