Until not so long ago, I've not even known that you could compress specific folders, files or even entire drives using windows' builtin compression. A simple way to do this is just go to properties and check "compress contents to save disk space" and you're all set.
Firstly heard of it I thought it was just like WinZip compressing files to reduce size or combine all files in one zipped file. But it seems like it has different use case than that.
And what's most interesting is the file is compressed, but the file's hash output remained the same (short experiment using a third-party hash calculator). How can this be real? If the input changes, the hash output must change (except in case of collision which is pretty rare and is off topic). For example, let’s say I compressed a file named MYDOCUMENT.pdf, and I can just keep it that way, putting it on USB drives or other newly installed PC and just use it as it is just normal file, without manually decompressing it and such?
When I checked the file size in properties, the size didn't change even a byte, but only the "size on disk" changed decreasingly. So it seems that the file's data remains intact as is (the same hash value probably proves this), but it just compresses and decompresses when reading it from the OS side.
Another question would be: There's another compress algorithm using the command line prompt, by typing "compact.exe /compactos:always". What's the difference between the two?
Windows is giving me a headache these days :/