Home / Microsoft / Microsoft DOS / a batch with delete backup file in directory
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: a batch with delete backup file in directory  (Read 439 times)
6fabio9
Topic Starter
Newbie



Posts: 2


« on: November 11, 2009, 05:05:23 PM »

I need an help for delete in the directory c:\backup the 5th day older file respect the current date

ex:

c:\backup\a.zip (date 12/11/2009)
c:\backup\b.zip (date 13/11/2009)
c:\backup\c.zip (date 14/11/2009)
c:\backup\d.zip (date 15/11/2009)
c:\backup\e.zip (date 16/11/2009)
c:\backup\f.zip (date 17/11/2009)

the current date is 20/11/2009, i run the batch program end the result in directory is:

c:\backup\d.zip (date 15/11/2009)
c:\backup\e.zip (date 16/11/2009)
c:\backup\f.zip (date 17/11/2009)

Thank you for your help.
fabio

Fabio



IP logged
gh0std0g74
Apprentice



Thanked: 37
Posts: 590


« Reply #1 on: November 11, 2009, 05:41:26 PM »

see here example 2. Its similar, just change 30 to 5
IP logged

6fabio9
Topic Starter
Newbie



Posts: 2


« Reply #2 on: November 12, 2009, 07:05:30 AM »

thank you

I try
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / a batch with delete backup file in directory « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.062 seconds with 20 queries.