File_DelEmptyFolder
Description
Section titled “Description”The function deletes an empty folder
Syntax
Section titled “Syntax”File_DelEmptyFolder(sFolder) As Boolean
Parameters
Section titled “Parameters”sFolder (String)
Section titled “sFolder (String)”The name for the folder
Return value
Section titled “Return value”gbValue is True if the folder was deleted. gbValue is False if the folder doesn’t exist or isn’t empty. In both cases, the function returns True.
Remarks
Section titled “Remarks”A folder counts as empty when it contains no files and its total size is 0 bytes. Empty subfolders are deleted together with the folder.
Example
Section titled “Example”If bStatus Then bStatus = File_DelEmptyFolder("C:\CapaInstaller")Related functions
Section titled “Related functions”File_DelTree File_ExistDir Constants Package Property Variables