Jump to content

Batch File Help! File cleanup after n # of days.


Recommended Posts

Guest lca1630
Posted

Hi,

 

I need to add to my batch and am not quite sure what syntax to use. I need a

methdod of file cleanup for some backup files. I need it to delete files

older than 14 days in particular file. Please help. Thanks

  • Replies 2
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Batch File Help! File cleanup after n # of days.

 

 

"lca1630" <lca1630@discussions.microsoft.com> wrote in message

news:9DE45916-099F-455C-9B19-FF61E0C831EE@microsoft.com...

> Hi,

>

> I need to add to my batch and am not quite sure what syntax to use. I need

> a

> methdod of file cleanup for some backup files. I need it to delete files

> older than 14 days in particular file. Please help. Thanks

>

 

You could use this command:

 

xxcopy /db#14 /rs /yy /s "d:\My Files\*.*" c:\

 

You can download xxcopy.exe from a number of Internet sites.

Guest lca1630
Posted

Re: Batch File Help! File cleanup after n # of days.

 

Thank You I will look into this, much appreciated.

 

"Pegasus (MVP)" wrote:

>

> "lca1630" <lca1630@discussions.microsoft.com> wrote in message

> news:9DE45916-099F-455C-9B19-FF61E0C831EE@microsoft.com...

> > Hi,

> >

> > I need to add to my batch and am not quite sure what syntax to use. I need

> > a

> > methdod of file cleanup for some backup files. I need it to delete files

> > older than 14 days in particular file. Please help. Thanks

> >

>

> You could use this command:

>

> xxcopy /db#14 /rs /yy /s "d:\My Files\*.*" c:\

>

> You can download xxcopy.exe from a number of Internet sites.

>

>

>


×
×
  • Create New...