| Home | All functions | Categories |
vuDelete(*CSTRING,LONG,LONG), Signed
Deletes one or more files or directories, with the option to include subdirectories and send items to the Recycle Bin. This function is extremely powerful and must be used with caution.
| Parameter | Data Type | Description |
|---|---|---|
| FileSpec | CSTRING(256) | Fully qualified file specification. Wildcards are permitted. |
| Subdirs | LONG | 0 = Do not delete subdirectories 1 = Delete all subdirectories and files when mask is used |
| RecycleBin | LONG | 0 = Permanently delete 1 = Send files to Recycle Bin |
1 (True) on success, 0 (False) on failure.
! Delete all files and subdirectories in C:\Temp, sending them to the Recycle Bin
FileSpec = 'C:\Temp\*.*'
vuDelete(FileSpec, 1, 1)
FileSpec = 'C:\*.*'
vuDelete(FileSpec, 1, 0) ! Wipes the entire drive
| Home | All functions | Categories |