Announcement

Collapse
No announcement yet.

Script to Zip Folders Older Than 1 Day

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

  • Script to Zip Folders Older Than 1 Day

    Hi,

    I am looking for a script that will zip up folders that are 1 day old and deleting them after zipping up successfully, the folder must be deleted to free up disk space. The zipped folder will use its original folder name. I have been searching high and low for such a script but unable to find 1.

  • #2
    Re: Script to Zip Folders Older Than 1 Day

    we had quite a few script posts here recently about performing actions based on dates of files etc.. have a look through this scripting section and see if you can copy-pasta some relevant bits
    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

    Comment


    • #3
      Re: Script to Zip Folders Older Than 1 Day

      Sure, simply with Powershell:
      http://blogs.technet.com/b/dkegg/arc...an-x-days.aspx
      Marcel
      Technical Consultant
      Netherlands
      http://www.phetios.com
      http://blog.nessus.nl

      MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
      "No matter how secure, there is always the human factor."

      "Enjoy life today, tomorrow may never come."
      "If you're going through hell, keep going. ~Winston Churchill"

      Comment

      Working...
      X