Skip to content

File_DelTree

Deletes folder and all subfolders

File_DelTree(sDir,bForce) As Boolean

Rootpath to be removed

True removes all attributes, such as read-only, from the files and folders in the tree before it deletes them. Without this, read-only files can make the deletion fail.

If the folder doesn’t exist, the function returns True.

If bStatus Then bStatus = File_DelTree("C:\CapaInstaller", True)

Scripting Guidelines

File_CreateDirectory File_DelFile File_ExistDir File_ExistFile Constants Package Property Variables