Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to check corrupt zip files in multiple folders on a server

$
0
0

I've got a problem where I'm trying use a Powershell script to check without extracting or moving files recursively from a parent folder on a server for any corrupt zip files that have an single unconventional file-name extension (ABC) and log corrupt filenames and path to a file to check for deletion.

I've tried the things I've found in the forum of using 7zip (7z t archive.zip * -r), but after checking some files reported in the log, found they were not corrupt.

Any help with a script for this would be greatly appreciated.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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