SHFileOperation Deleting to Recycle Bin

Giganews Newsgroups
Subject: SHFileOperation Deleting to Recycle Bin
Posted by:  Steve Harp (kilr…@harpservices.com)
Date: Fri, 01 Sep 2006

Hi All,

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
  begin
    wFunc := FO_DELETE;

    pFrom := pChar(sFileName + #0);
    fFlags := FOF_FILESONLY or FOF_NOCONFIRMATION or FOF_SILENT;
    fAnyOperationsAborted := False;
    hNameMappings := nil;
    lpszProgressTitle := nil;
  end;

How do I get SHFileOperation to permanently delete files?

Thanks,
Steve

Replies