Monday, May 18, 2015

windows - How to compress files with batch file?


I used COMPACT but it didn't compress the file except changing the file color from black to blue. I only used


COMPACT c:\fileToZip.bak /C

Did i make wrong?


Answer



Blue colour files indicate that the file has been compressed. Right click on the file, select properties and you'll see that the size consumed on disk has been reduced to the compressed size.


Example: Took a file of 9kb, compressed it. Now Windows Explorer still shows that the file is 9Kb but the properties show that size consumed on disk has gone down to the compressed size, indicating compression was successful.


alt text


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...