Wednesday, January 30, 2013

PUSH IT DOWN Compress -Compact

Compact

2 out of 4 rated this helpful - Rate this topicUpdated: April 17, 2012Applies To: Windows Server 2008, Windows VistaDisplays or alters the compression of files or directories on NTFS partitions. If used without parameters, compact displays the compression state of the current directory and the files it contains.For examples of how to use this command, see Examples.Syntaxcompact [/c | /u] [/s[:<Dir>]] [/a] [/i] [/f] [/q] [<FileName>[...]] Parameters

 

ParameterDescription/cCompresses the specified directory or file./uUncompresses the specified directory or file./s[:<Dir>]Applies the compact command to all subdirectories of the specified directory (or of the current directory if none is specified)./aDisplays hidden or system files./iIgnores errors./fForces compression or uncompression of the specified directory or file. /f is used in the case of a file that was partly compressed when the operation was interrupted by a system crash. To force the file to be compressed in its entirety, use the /c and /f parameters and specify the partially compressed file./qReports only the most essential information.<FileName>Specifies the file or directory. You can use multiple file names, and the * and ? wildcard characters./?Displays help at the command prompt.RemarksThe compact command is the command-line version of the NTFS file system compression feature. The compression state of a directory indicates whether files are automatically compressed when they are added to the directory. Setting the compression state of a directory does not necessarily change the compression state of files that are already in the directory.You cannot use compact to read, write, or mount volumes that have been compressed using DriveSpace or DoubleSpace.You cannot use compact to compress file allocation table (FAT) or FAT32 partitions.ExamplesTo set the compression state of the current directory, its subdirectories, and existing files, type:compact /c /s To set the compression state of files and subdirectories within the current directory, without altering the compression state of the current directory itself, type:compact /c /s *.* To compress a volume, from the root directory of the volume, type:compact /c /i /s:\ NoteThis example sets the compression state of all directories (including the root directory on the volume) and compresses every file on the volume. The /i parameter prevents error messages from interrupting the compression process.To compress all files with the .bmp file name extension in the \Tmp directory and all subdirectories of \Tmp, without modifying the compressed attribute of the directories, type:compact /c /s:\tmp *.bmp To force complete compression of the file Zebra.bmp, which was partially compressed during a system crash, type:compact /c /f zebra.bmp To remove the compressed attribute from the directory C:\Tmp, without changing the compression state of any files in that directory, type:compact /u c:\tmp Additional references

|||||||||


OLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:260910 How to obtain the latest Windows 2000 service packWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.There are two possible workarounds available:Use the Expand utility, located in the \I386 folder on the Windows 2000 CD-ROM, to expand the file. To recompress the file, use the Compress utility from the Windows 2000 Resource Kit. When the file has been recompressed, FRS can replicate the file.If you recompress the file, and it does not solve the problem, you can disable the compression process on FRS by changing the following values in the below registry key:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NtFrs\ParametersValue:Compress Staging Files Value Type:dword Value Data: 00000000 <HEX>Note Please ensure to obtain the latest hotfix from the Hotfix server. If a hotfix is being saved, ensure it is refereshed from this server to prevent problems. Note After applying this hotfix three redundant values may be added into the Registry which will need to be fixed in order for IIS to work properly. This should not occur if the above note is followed. But, if this does occur, for more information, please see the following article in the Microsoft Knowledge Base: 296638 Starting Internet Services Manager may cause error messageBack to the top | Give Feedback

Manually compressing the Offline Files cache\database (the %SystemRoot%\CSC folder) works, and files currently stored in the cache are compressed, but newly cached files are not stored in compressed format and previously compressed files become uncompressed after synchronization.Back to the top | Give Feedback

CAUSE

Offline file compression is not directly supported by Offline Files. Windows 2000 writes files in uncompressed format even if the folder is marked for compression. This ensures that a deadlock situation does not occur. Marking the CSC (Client Side Caching) folder to be compressed and leaving it this way can cause a variety of complications ranging from caching update problems to Windows 2000 not responding (hanging) while attempting to access files residing within the cache.Back to the top | Give Feedback

RESOLUTION

To prevent this problem from occurring, do not compress the Offline Files cache/database (the CSC folder).Back to the top | Give Feedback

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.Back to the top | Give Feedback

MORE INFORMATION

If the CSC folder is specifically marked to be compressed, file system calls are made by CSC to ensure that the files get marked as uncompressed. This is done each time a file is accessed within the database.Note that the Offline Files cache\database is hidden by default and cannot be compressed except by an administrator, and should not be directly accessed in such a manner. Doing so may cause the cache to become corrupted. Under typical conditions, a file that currently resides within the cache as compressed is uncompressed after a synchronization update if the file has changes that are written back to the cache.The most common issue that results from compressing the CSC folder is a client computer hanging while attempting to access a cached document while offline.Back to the top | Give Feedback

Properties





No comments:

Post a Comment