Changes the current directory to the directory specified by the given path.
mov ax, 713Bh ; Change Directory
mov dx, seg Path ; see below
mov ds, dx
mov dx, offset Path
int 21h
jc error
Clears the carry flag if successful. Otherwise, the function sets the carry flag and sets the AX register to an error value.
The current or default directory is the directory that the system uses whenever an application supplies a filename that does not explicitly specify a directory. Similarly, the current or default drive is the drive the system uses whenever an application supplies a path that does not explicitly specify a drive. If a drive other than the default drive is specified as part of the new directory path, this function changes the current directory on that drive but does not change the default drive. Set Default Drive (Interrupt 21h Function 0Eh) can be used to change the default drive.