[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
NAME: ChDir
USE: Changes to a specified directory. A string type variable is
passed to ChDir. Errors are returned through IOResult.
DEPENDENCY: None
SYNTAX: ChDir(StringVar);
EXAMPLE: Program TestDir;
Begin
If ParamCount <> 1 then
Begin
Writeln('SYNTAX: TestDir NewPath');
Halt;
end;
{$I-}
ChDir(ParamStr(1));
{$I+}
if IOResult <> 0 then
Writeln('ERROR * * * Could not change Directory');
end.
See Also:
GetDir
MkDir
RmDir
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson