del[-] file [flags]
|Default||move file to Recycle Bin.|
Deletes a file or folder.
Like all QM file functions, supports special folders. Also supports relative paths (in QM 2.3.0 and above it works better).
To delete multiple files, can be used one of the following:
1. Use wildcard characters in filename part of from. All matching files will be deleted. To delete matching folders too, FOF_FILESONLY flag must be removed. Use the 'Delete Files' dialog to insert correct flags.
2. Use list of files (full paths) in from, one file in a line.
3. Enumerate files. To insert the code, use the 'Enumerate Files' dialog.
The function works almost in the same way as if the user would do it manually. It is quite slow with small files, especially on Vista. You can instead use faster function: FileDelete.
QM 2.3.0. Removed autodelay.
Drag and drop a file onto the macro text to insert full path.
Send file to Recycle Bin del "$desktop$\text.txt" Delete file del- "$desktop$\text.txt" Empt Recycle Bin SHEmptyRecycleBin 0 0 SHERB_NOCONFIRMATION