Scalabium Software

SMExport advertising
Knowledge for your independence'.
Home Delphi and C++Builder tips

#6: How can I delete a file into Recycle Bin?

uses ShellApi;

var FileOpStruc: TSHFileOpStruct;
    s: PChar;
  s := 'C:\your_full_path\your_file_name.txt';
  with FileOpStruc do
    Wnd := 0;
    wFunc := FO_DELETE;
    pFrom := s;
    fFlags := FOF_ALLOWUNDO
You can delete a files by some mask too.

Published: August 4, 1999

See also
Paradox Password Recovery
Clarion to Text converter
Paradox ActiveX
ExcelFile Viewer
Metafile Convert
Excel Reader (dll)
ABA Picture Convert
DBISAM Password Recovery
SMExport suite
Fast Document Viewer

Contact to webmaster


Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2024, Scalabium Software. All rights reserved.

SMExport advertising