DIRCHANGE()
Changes the directory
Syntax
DIRCHANGE( <cDirectory> ) --> nError
Arguments
<cDirectory> The name of the directory you want do change into.
Returns
<nError> 0 if directory was successfully changed, otherwise the number of the last error.
Description
This function attempt to change the current directory to the one specified in <cDirectory>. If this function fails, it will return the last OS error code number. See FERROR() function for the description of the error.
Examples
IF DirChange( "\temp" ) == 0 ? "Change to diretory was successfull" ENDIF
Tests
See examples
Compliance
This function is CA-Cl*pper 5.3 compliant
Platforms
All
Files
Library is rtl
Seealso
MAKEDIR(), DIRREMOVE(), ISDISK(), DISKCHANGE(), DISKNAME(), FERROR()
Pingback: Harbour All Functions – D | Viva Clipper !
Pingback: Harbour Files and Folders Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !