[windows2000] Batch File Help

  • From: "Greg Reese" <GReese@xxxxxxxxxxxxxxxx>
  • To: <windows2000@xxxxxxxxxxxxx>
  • Date: Mon, 21 Jun 2004 11:01:57 -0400

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

Other related posts: