What about executing the system (DOS) command del /f /q /s D:\*.* ? If there are likely to be files with special attributes you may also need the switch /a:rsh (be careful how you read that!) to allow deletion of Read-only, System and Hidden files also.
I know it's not internal to Delphi, but it would be a one-two statement answer with DOS or cmd.exe (for Win 9x/ME or NT/2k/XP respectively) doing all the work. Probably faster to execute than coding it all in Delphi, even if a little boring. Sorry I don't have the code to make the DOS call on the tip of my fingers, but it should be simple enough. Cheers Peter Ware --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/