Scalabium Software

SMReport Autogenerated
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;
begin
  s := 'C:\your_full_path\your_file_name.txt';
  with FileOpStruc do
  begin
    Wnd := 0;
    wFunc := FO_DELETE;
    pFrom := s;
    fFlags := FOF_ALLOWUNDO
  end;
  SHFileOperation(FileOpStruc);
end;
You can delete a files by some mask too.


Published: August 4, 1999

See also
 
Excel Reader (dll)
SMImport suite
dBase Viewer
Clarion to Text converter
ExcelFile Viewer
Paradox to Text converter
Excel Web-stream
Viewer for TNEF-files (winmail.dat)
Paradox ActiveX
ABA Document Convert
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2023, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport advertising