The "del" command deletes files and not directories, just what you need. Why not simply "d:\MSSQL\Backup>del *.* /s" ? ----- Original Message ----- Subject: [windows2000] Batch File Help Date: Mon, 21 Jun 2004 11:01:57 -0400 From: "Greg Reese" <GReese@xxxxxxxxxxxxxxxx> I need to make a batch file that will delete all files in a bunch of subdirectories but leave the subdirs in place. This is for the backup file on my SQL server. The directory is d:\MSSQL\Backup then there is a subdir for each database. I want to clear out all those sub directories. My best thought was to delete the entire backup folder, then copy in an empty one that has all the subdirectories in it. Is there a more efficient way to do this? Greg ******************************************************** This Weeks Sponsor StressedPuppy.com Games Feeling stressed out? Check out our games to relieve your stress. http://www.StressedPuppy.com ******************************************************** To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm