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.
Asked
Active
Viewed 3,309 times
1
Ivan P.
- 11
1 Answers
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"
)
Vlastimil Ovčáčík
- 3,018