TC not supporting compressed folder attribute
Moderators: Hacker, petermad, Stefan2, white
TC not supporting compressed folder attribute
it seems that when extracting into a folder which requires Administrator access, TC does not respect the 'NTFS compressed' attribute of the folder and so the extracted files are not compressed. it seems to work fine if extracted into a non-Admin folder, and also if it is just copied into the Admin folder.
- ghisler(Author)
- Site Admin
- Posts: 50517
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Does it matter whether the TEMP directory is on the same drive? What TC does is extract the files to TEMP, and then use Tcmadmin.exe to move them to the requested destination. If you move files within the same drive, Windows MoveFile doesn't set any special attributes.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50517
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately there is no solution because of the different way how move functions on the same drive and between two drives:
1) When the files are moved from a TEMP folder of a different drive, a new file is created in the target folder and the data is copied, then the original is deleted. Since a new file is created, it gets the attributes of that folder
2) When a file is moved within the same drive, the file remains unchanged, just the pointer to that file is moved to the other directory. Therefore the file keeps its old properties. Since TEMP isn't marked as compressed, the file will not be marked as compressed either.
1) When the files are moved from a TEMP folder of a different drive, a new file is created in the target folder and the data is copied, then the original is deleted. Since a new file is created, it gets the attributes of that folder
2) When a file is moved within the same drive, the file remains unchanged, just the pointer to that file is moved to the other directory. Therefore the file keeps its old properties. Since TEMP isn't marked as compressed, the file will not be marked as compressed either.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com