INFO: Copying Compressed Files |
Q130331
It is not possible to copy NTFS compressed files without uncompressing
them. This functionality is not available in Windows NT versions 3.5 and
3.51; however, this feature may be included in a future version of Windows
NT.
Compressed files are expanded via memory-mapped files. This minimizes the
performance hit of expanding the file.
One of the new features found in Windows NT 3.51 is file compression. Files or directories can be compressed or decompressed by calling DeviceIoControl() with one of the following compression flags:
FSCTL_SET_COMPRESSION : Sets the compression state of a file or
directory.
FSCTL_GET_COMPRESSION : Obtains the compression state of a file
or directory.
Two additional FSCTL codes are documented in the Win32 SDK as "not
implemented in this release." They are FSCTL_READ_COMPRESSION and
FSCTL_WRITE_COMPRESSION. These additional FSCTL codes will be part of
the functionality that will allow you to read and write files on an
NTFS compressed drive without having to decompress them first. Again,
this functionality may be included in a future release of Windows NT.
Additional query words: 3.50 NTFS File Compression
Keywords : kbFileIO kbKernBase kbOSWin2000 kbDSupport kbGrpDSKernBase
Issue type : kbinfo
Technology : kbAudDeveloper kbWin32sSearch kbWin32API
|
Last Reviewed: October 20, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |