Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Deletion

Status
Not open for further replies.

cobweb

IS-IT--Management
May 5, 2002
95
GB
Here is a question from somebody who wants to learn about Delphi..
I have written a program in Java that deletes files from a pre specified directory (ie click the button and all files beginning with "0" in a certain directory are deleted); I use it at work to clear some directories regularily.
My question is - does Delphi have the same capability? if anybody out there had done something similar I would be most grateful; it would give me a leg up in learning Delphi.

Sorry if this is a bit of a 'lazy' question..but I have read a few Delphi manuals and am little wiser! Something meaty I could play with would help immeasurably!
 

Lookup the file management routines in the help file. In particular, check out these functions:
[tt]
DeleteFile
FileSearch
FindFirst
FindNext
[/tt]
AFAIK you have to delete the files one at a time.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top