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

Auto CompressArchive by date?

$
0
0

Hello guys. I'm a newbie... , so maybe somebody can help me with one 'simple' script.

So.. I have a folder eg: 

C:\logs\xxx , in this folder 'xxx' i have many subfolders , eg: x1, x2, x3, etc .. , in this subfolders have many files. Some from 2016, 2017, 2018, 2019 , etc. I need to archive files from subfolder (x1,x2,x3...) by date, all files with date 2018 from folder x1 per example arhive in folder x1 > x1_2018.zip . Files with date 2019 arhive x1_2019. ((( eg: (Files from x2 > x2_2018, x2_2019,,, etc ))). 

Thank's in advance.


Viewing all articles
Browse latest Browse all 15370

Trending Articles



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