Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

PowerShell Script to zip old files

$
0
0

Hey gang,

I've been trying to form a PowerShell script that will look thru a given folder and find any files older than X days. Then take those files and add them to a .ZIP folder in a different network location. And lastly delete those files from the original folder. I can use 7zip cmd line or the native windows compression. This seems like it would be a common script, but a lot of ones i've seen are either way too involved or dont work at all. BTW, i'm no Powershell Expert either, but familiar with it.

Thanks


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>