qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ChDir Procedure
  Summary Details Example                                   Back
 
  Argument
 
    path    String expression representing the path to a new directory
 
  Description
 
    The ChDir procedure changes the current directory to a specified
    directory. ChDir functions work the same as the DOS command CHDIR
    or CD.
 
    The path argument may be any legal DOS path and may include the
    shorthand directory notation '.' and '..'.
 
    If the path includes a drive letter, ChDir changes the current
    drive to the drive specified in the path:
 
       ChDir( 'A:' );
 
    If the directory does not exist, an I/O error occurs.
 
    To prevent a program from halting with a run-time error when an I/O
    error occurs, turn off I/O checking with {$I-} and check the return
    value of the IOResult function.