Windows – Any method to batch-compress multiple files

batchcompressiongzipwindows 7

Does anyone know how multiple files can be GZIP compressed?
I have lots of files in a folder and I need to compress them individually.

Actually, I've found a way to do it. GZIP command line binary does the job.

I've used gzip -r dir.

Thanks for your efforts.

Best Answer

Just use the gzip alone.

by default, gzip will take any file passed to it and compress it and add the .gz extension. i.e.

gzip dir/* -r

would gzip every file in dir/* (and sub-directories).

Related Question