Announcement

Collapse
No announcement yet.

delete the files andsubfolders which are 7 days old in win2k

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • delete the files andsubfolders which are 7 days old in win2k

    Hi,

    I am looking for a script which can delete the files and subfolders under the mainfolder which are x days old.. we have win2k and xp/2k3..

    please paste the script if anybody have it....

    thanks in advance....

    Madhu

  • #2
    i found something
    http://www.databasejournal.com/scrip...le.php/3517231
    let me know if it works
    Good Luck

    Shai

    MCSE 2003+Security;MCSE 2003+Messaging
    HP ASE;HP AIS;HP APS

    So, from me to all of you out there, wherever you are, remember:
    the light at the end of the tunnel may be you. Good Day!

    Comment


    • #3
      In W2K3 you can do:
      Code:
       forfiles /d -7 /p c:\files /c "cmd /c del /q @path"
      (will not work in W2K or XP)
      Guy Teverovsky
      "Smith & Wesson - the original point and click interface"

      Comment

      Working...
      X