Function:
RemoveDirectory(lpPathName)

 

Description:
Deletes a directory from a disk. The function will not delete any files or subdirectories inside the directory. If the directory to delete is not completely empty, the function will fail.

 

Parameters:
lpPathName: The directory to delete. The directory must be completely empty.

 

Returns:
If successful, the function returns 1. 0 if an error occured.

 

Example:
Click on the calc icon to view a sample of the RemoveDirectory function.