Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

Archive files with Window Batch script

Any idea how to write a window batch script such that it will deletes all files with 7 days ago ?

Tkx
0
AXISHK
Asked:
AXISHK
  • 3
  • 2
2 Solutions
 
julian_bruntCommented:
Hate to point you at another site, but these guys have kinda discussed the topic to death...
http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days

Yo ucould also consider using WSH scripts (e.g. vbs) which are a little morestraight forward to write
0
 
Venugopal NCommented:
Refer the link which will help you to write the script to delete file older than x days.
http://www.chebucto.ns.ca/~ak621/DOS/Bat-Adv3.html#OLD
0
 
AXISHKAuthor Commented:
Any sample for that ?

Tkx
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
AXISHKAuthor Commented:
I've requested that this question be deleted for the following reason:

No feedback.
0
 
Venugopal NCommented:
Please go throught the Link which i have provided, which have the sample for it
0
 
AXISHKAuthor Commented:
Tks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now