RemoveFile statement cannot be appilied to folders.
the folder with the given name.
The folder will be deleted with its entire
contents and any subdirectories
- The files cannot be restored via
the Recycle Bin
- No prompt for confirmation will appear
Placeholders + and * may be used to delete multiple folders
var fso = guixt.CreateObject("Scripting.FileSystemObject");
// folder exists ?
files and subfolders with the given name, putting them into the Recycle
function delete_file(foldername, itemname)
var shell =
var folder =
var item =