Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compressing files through command line on a Windows system

I am trying to compress one folder on my local disk, for example: C:\Templates

I am using the below command from command line (cmd.exe) to do this operation:

compact /c C:\Templates

But it is not working, and shows the following message:

1 files within 1 directory were compressed.    
0 total bytes of data are stored in 0 bytes.      
The compression ratio is 1.0 to 1.

My machine is running Windows 7, 64 bit.

like image 445
Jash Avatar asked Mar 15 '12 06:03

Jash


1 Answers

Use:

compact /c /s:C:\Templates

The only thing you are missing is the /s switch before the directory name.

like image 104
Habib Avatar answered Sep 18 '22 02:09

Habib