1

I basically want to compress each file in each folder, delete the original file and leave the folder uncompressed. I don't want to compress the whole folder, only the contents in it.
That, with 7zip and the LZMA2 algorithm at Ultra compression level.
I'm guessing I'd need a batch file but I'm not very good with that.

4

1 Answer 1

1

Put this in batch file:

REM Usage: ZipFilesRecursively.bat "C:\My Files"
for /R "%~f1" %%F in (*) do (
    7z a -mx9 "%%~dpnxF.7z" "%%F"
    if exist "%%~dpnxF.7z" del "%%F"
)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .