Next Topic

Previous Topic

Book Contents

DeleteDirectory

int DeleteDirectory(string sDirectory)

Return values

Non zero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • sDirectory - Path of the directory to be deleted.

Remarks

The directory must be empty and cannot be a root director or the current working directory.