[windows2000] Re: Batch File Help

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

not a .bat file specifically.  Sorry.  VBS, Kix, whatever.  I am not
picky.  
 
I have been relying on SQL Server to discard files older than 12 hours
but it is not doing it so I am trying to put together something that can
be scheduled that will clear out the files.  
 
Greg

  _____  

From: windows2000-bounce@xxxxxxxxxxxxx
[mailto:windows2000-bounce@xxxxxxxxxxxxx] On Behalf Of Jeff Malczewski
Sent: Monday, June 21, 2004 11:06 AM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: Batch File Help


I know how to do it in VBS....   But batch??

        -----Original Message-----
        From: Greg Reese [mailto:GReese@xxxxxxxxxxxxxxxx]
        Sent: Monday, June 21, 2004 11:02 AM
        To: windows2000@xxxxxxxxxxxxx
        Subject: [windows2000] Batch File Help
        
        

        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 email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the
system manager. This message contains confidential information and is
intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail. 

Other related posts: