Skip to content

Instantly share code, notes, and snippets.

@DukeLupus
DukeLupus / TestArchives.cmd
Last active October 21, 2018 19:39
Test archives using 7z
REM This batch file will test all of the common archive formats
REM (zip, rar, 7z, gz) and .epub books (epub is just HTML inside zip container)
REM using 7zip (free and open source, get it from https://www.7-zip.org)
REM All bad archives are moved to "c:\BadArchives" by default,
REM and the directory is created if it doesn't exist.
REM Change the directory name as wanted (in two places)
REM and path to 7z.exe if it isn't in the default folder.
REM Password-protected files are considered to be invalid as well.
MKDIR "c:\BadArchives"