Often times I find myself in need of creating a directory with compressed attribute turned on, so I can put some text log files in with less space consumption. While md or mkdir doesn't support doing this directly, you can create the directory and later apply the compression attribute, so that any subsequent files copied to that directory will be compressed.
compact /C SomeDir
copy SomeText.log SomeDir
That does it. Not the most useful thing in the world. But hey, you never know when you will need it.
thanks for this tip, i had no idea about the compact command!
Post a Comment