Skip to content

File_DelEmptyFolder

The function deletes an empty folder

File_DelEmptyFolder(sFolder) As Boolean

The name for the folder

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.

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.

If bStatus Then bStatus = File_DelEmptyFolder("C:\CapaInstaller")

Scripting Guidelines

File_DelTree File_ExistDir Constants Package Property Variables