Harbour Reference Guide

 

DIRREMOVE()

Attempt to remove an directory

Syntax

DIRCHANGE( <cDirectory> ) --> nError

Arguments

<cDirectory> The name of the directory you want to remove.

Returns

<nError> 0 if directory was successfully removed, otherwise the number of the last error.

Description

This function attempt to remove the specified directory in <cDirectory> If this function fail, the it will return the last OS error code number. See FERROR() function for the description of the error.
Examples
      cDir:= ".\Backup"
      if (DIRREMOVE(cDir)==0)
          ? "Remove of directory",cDir, "was successfull"
      endif
Tests
      See examples
Status

Ready

Compliance

This function is CA Clipper 5.3 compliant

Platforms

All

Files

Library is rtl

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30