|Subject:||SHFileOperation Deleting to Recycle Bin|
|Posted by:||Steve Harp (kilr…@harpservices.com)|
|Date:||Fri, 01 Sep 2006|
I'm using SHFileOperation to delete files. Instead of permanently
deleting the files, it's moving them to the recycle bin. I assume I'm
missing a flag that I need. Here are the flags I'm using.
with Info do
wFunc := FO_DELETE;
pFrom := pChar(sFileName + #0);
fFlags := FOF_FILESONLY or FOF_NOCONFIRMATION or FOF_SILENT;
fAnyOperationsAborted := False;
hNameMappings := nil;
lpszProgressTitle := nil;
How do I get SHFileOperation to permanently delete files?