Delphi delete all files in directory




















Thanks a lot, John. Michael William Delphi Developer. Dr John Stockto Delphi Developer. Get it via sig line 3. John Stockton, Surrey, UK. Do not Mail News to me. Deleting Files in directory and Directory itself. Board index » delphi » How to delete files in a directory older than a certain date? John Fari. How to delete files in a directory older than a certain date?

Michael William. Re:How to delete files in a directory older than a certain date? Active 14 days ago. Viewed 28k times. FindClose f end; end;. Warren P MChan MChan 6, 26 26 gold badges 76 76 silver badges bronze badges. You didn't even post enough code to give anyone a chance to really debug it, I mean, how can we know what ClearFolder does? Technically the answers below are making assumptions, because you're making people guess. Nevertheless, your question is good, and not a duplicate.

Good one. The other similar questions are all too specific, and your title is much more general. Warren the code in the question is the body of ClearFolder. Standard recursion. WarrenP thanks for taking the time to read my question, DavidHeffernan has helped me and solved the problem — MChan.

Possible duplicate of Delphi, delete folder with content — Vadzim. Add a comment. Active Oldest Votes. David Heffernan David Heffernan k 40 40 gold badges silver badges bronze badges. In fact, I was about to write an essentially identical answer, but I was too slow. Thanks David for your help. There is a reason why I am doing it the hard way which is that I must do some operations on each of the deleted folders before deleting them The API is an outstanding fast solution, which I personally prefer to use but I am stuck here with this solution due to the task requirements : — MChan.

Ya, you didn't say that in the question. Anyway, I think my update should get you on the way. Sorry if I didn't mention it clearly in my question. Cheers Nigel. Brian Bushay Tea Delphi Developer. Yes I believe that is correct but I do not see how it is relevant to the original question or to the code sample I posted. Deleting ALL files in a directory routine Board index » delphi » Delete all files in a directory Art Metz.

Delete all files in a directory. Re:Delete all files in a directory. Gary Wilmo. Nigel D. Re:Delete all files in a directory Hi: Maybe I should repeat the question.

Brian Bushay Tea. Re:Delete all files in a directory Hi again: Thanks to both Brian and Gary for their respective insights. Other Threads 1. Deleting all files in a directory 3.



0コメント

  • 1000 / 1000