Share via


Compressing NTFS Filesystems

5/10/2007

If you are using the NTFS filesystem, you can reduce the footprint size of your run-time image by compressing individual files, directories, or the entire partition.

To compress the NTFS filesystem

  1. From the run-time image, open My Computer.

  2. Right-click the drive you want to compress and choose Properties.

  3. On the General tab, select Compress drive to save disk space, and then select OK. The Confirm Attribute Changes window appears.

  4. Choose whether or not to apply the changes to the root of the partition, or to all subdirectories and files, then select OK.

Additionally, you can use the compact command to compress the NTFS file system, specific files, or directories. For example, to compress the program files and all subdirectories, type the following command:

compact /C /S:"C:\Program Files" 

For more information about the compact command syntax, see this Microsoft Web site.

  1. From the run-time image, open My Computer.

  2. Right-click the drive you want to compress and choose Properties.

  3. On the General tab, select Compress drive to save disk space, and then select OK. The Confirm Attribute Changes window appears.

  4. Choose whether or not to apply the changes to the root of the partition, or to all subdirectories and files, then select OK.

Additionally, you can use the compact command to compress the NTFS file system, specific files, or directories. For example, to compress the program files and all subdirectories, type the following command:

compact /C /S:"C:\Program Files" 

For more information about the compact command syntax, see this Microsoft Web site.

See Also

Concepts

Footprint Reduction Design Considerations

Other Resources

Footprint