or the old favourite, robocopy and a del command

ROBOCOPY "D:\Backups\system" "D:\To_Delete" /MOV /E /MINAGE:5 /r:0 /w:0
DEL D:\To_Delete /q /s

We have it set up as a scheduled task.

Regards

Tony Patton
Desktop Operations Cavan
Ext 8078
Direct Dial 049 435 2878
email: [email protected]



Brian Desmond <[email protected]> 
03/02/2009 16:47
Please respond to
"NT System Admin Issues" <[email protected]>


To
"NT System Admin Issues" <[email protected]>
cc

Subject
RE: Del *.bak after 7 days






FORFILES /p E:\Backup /s /m *.* /d -8 /c "CMD /C del /Q @FILE"
 
That will delete anything older than 8 days in E:\Backup
 
Thanks,
Brian Desmond
[email protected]
 
c - 312.731.3132
 
From: Stefan Jafs [mailto:[email protected]] 
Sent: Tuesday, February 03, 2009 10:32 AM
To: NT System Admin Issues
Subject: Del *.bak after 7 days
 
I have a bunch of SQL back files that?s keep accumulating, they are backed 
up to disk and then copied to tape, there is no need to keep more that 7 
days on the Hard drives.
Does any one have a script / bat file that could del et *.bak from a 
folder and subfolders after let?s say 7 days?
 
__________________________________________________
Stefan Jafs 
 
This email and any attached files are confidential and intended solely for 
the intended recipient(s). If you are not the named recipient you should 
not read, distribute, copy or alter this email. Any views or opinions 
expressed in this email are those of the author and do not represent those 
of the Amico Corporation. Warning: Although precautions have been taken to 
make sure no viruses are present in this email, the company cannot accept 
responsibility for any loss or damage that arise from the use of this 
email or attachments.
 
 
 

 
 

====================================================================
http://www.quinn-insurance.com

This e-mail is intended only for the addressee named above. The contents
should not be copied nor disclosed to any other person. Any views or
opinions expressed are solely those of the sender and
do not necessarily represent those of QUINN-Insurance, unless otherwise
specifically stated . As internet communications are not secure,
QUINN-Insurance is not responsible for the contents of this message nor
responsible for any change made to this message after it was sent by the
original sender. Although virus scanning is used on all inbound and
outbound e-mail, we advise you to carry out your own virus check before
opening any attachment. We cannot accept liability for any damage sustained
as a result of any software viruses.

====================================================================

QUINN-Life Direct Limited is regulated by the Financial Regulator.
QUINN-Insurance Limited is regulated by the Financial Regulator and
regulated by the Financial Services Authority for the conduct of UK
business.

====================================================================

QUINN-Life Direct Limited is registered in Ireland, registration number
292374 and is a private company limited by shares.
QUINN-Insurance Limited is registered in Ireland, registration number
240768 and is a private company limited by shares.
Both companies have their head office at Dublin Road, Cavan, Co. Cavan.

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to