Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy current files & Remove files older then x days.

Status
Not open for further replies.

andyoye

IS-IT--Management
Mar 23, 2004
56
US
I need a batch script to copy all current files to the destination and remove all files older then seven days from current time/day.

I can run this batch file with windows schedule.
Thanks
 
I suggest learning VBScript. This would be a very difficult task as a batch but relatively trivial as a VBScript.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
yes, I found robosopy pretty neat for this purpose. Thanks all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top