Published by


Brink's Avatar
Administrator

Posts: 20,835

Show Printable Version 


How to Compress or Uncompress Files and Folders in Windows 10

information   Information
Windows 10 supports compression for individual files and folders on NTFS volumes using NTFS compression.

While NTFS file system compression can save disk space, compressing data can adversely affect performance. NTFS compression has the following performance characteristics. When you copy or move a compressed NTFS file to a different folder, NTFS decompresses the file, copies or moves the file to the new location, and then recompresses the file. This behavior occurs even when the file is copied or moved between folders on the same computer. Compressed files are also expanded before copying over the network, so NTFS compression does not save network bandwidth.

Files or folders saved into an existing compressed folder will automatically be compressed.

This tutorial will show you how to compress or uncompress a file or folder with NTFS Compression in Windows 10.

Note   Note
NTFS compression is not the same as zipping a file or folder.

NTFS compressed files and folders will have a double blue arrows overlay on their icon at the top right corner to indicate that they are compressed.


CONTENTS:



EXAMPLE: Files and Folders compressed using NTFS Compression
Click image for larger version. 

Name:	Compressed_files_folders.png 
Views:	318 
Size:	30.6 KB 
ID:	42728






Compress or Uncompress Files and Folders in Windows 10 OPTION ONE Compress or Uncompress Files and Folders in Windows 10
To Compress Files and Folders in Properties

1. Right click or press and hold on one or more selected files and folders that you want to compress with NTFS Compression, and click/tap on Properties.

2. In the General tab, click/tap on the Advanced button. (see screenshots below)

Click image for larger version. 

Name:	Compress_file-1.png 
Views:	573 
Size:	84.9 KB 
ID:	42732

3. Check the Compress contents to save disk space box, and click/tap on OK. (see screenshots below)

Click image for larger version. 

Name:	Compress_file-2.png 
Views:	323 
Size:	48.7 KB 
ID:	42733

4. Click/tap on OK. (see screenshots below)

Click image for larger version. 

Name:	Compress_file-3.png 
Views:	343 
Size:	64.2 KB 
ID:	42734

5. If you selected a folder, then select (dot) to Apply changes to this folder only or Apply changes to this folder, subfolders and files, and click/tap on OK. (see screenshots below)

Name:  Compress_folder-4.png
Views: 15418
Size:  16.0 KB






Compress or Uncompress Files and Folders in Windows 10 OPTION TWO Compress or Uncompress Files and Folders in Windows 10
To Uncompress Files and Folders in Properties

1. Right click or press and hold on one or more selected compressed files and folders that you want to uncompress, and click/tap on Properties.

2. In the General tab, click/tap on the Advanced button. (see screenshots below)

Click image for larger version. 

Name:	Compress_file-1.png 
Views:	573 
Size:	84.9 KB 
ID:	42732

3. Uncheck the Compress contents to save disk space box, and click/tap on OK. (see screenshots below)

Click image for larger version. 

Name:	Compress_file-2.png 
Views:	323 
Size:	48.7 KB 
ID:	42733

4. Click/tap on OK. (see screenshots below)

Click image for larger version. 

Name:	Compress_file-3.png 
Views:	343 
Size:	64.2 KB 
ID:	42734






Compress or Uncompress Files and Folders in Windows 10 OPTION THREE Compress or Uncompress Files and Folders in Windows 10
To Compress a File in Command Prompt

1. Open a command prompt or elevated command prompt depending on the access rights you need for the file you want to compress.

2. Type the command below in the command prompt, and press Enter. (see screenshot below)

compact /c "full path of file" /i /Q

Note   Note
Substitute full path of file in the command above with the actual full path of the file that you want to compress.

For example: compact /c "C:\Users\Russell\Desktop\File.txt" /i /Q


Click image for larger version. 

Name:	Compress_file_command.png 
Views:	153 
Size:	29.0 KB 
ID:	42718






Compress or Uncompress Files and Folders in Windows 10 OPTION FOUR Compress or Uncompress Files and Folders in Windows 10
To Uncompress a File in Command Prompt

1. Open a command prompt or elevated command prompt depending on the access rights you need for the compressed file you want to uncompress.

2. Type the command below in the command prompt, and press Enter. (see screenshot below)

compact /u "full path of file" /i /Q

Note   Note
Substitute full path of file in the command above with the actual full path of the compressed file that you want to decompress.

For example: compact /u "C:\Users\Russell\Desktop\File.txt" /i /Q


Click image for larger version. 

Name:	Uncompress_file_command.png 
Views:	145 
Size:	25.4 KB 
ID:	42729






Compress or Uncompress Files and Folders in Windows 10 OPTION FIVE Compress or Uncompress Files and Folders in Windows 10
To Compress Only a Folder in Command Prompt

1. Open a command prompt or elevated command prompt depending on the access rights you need for the folder you want to compress.

2. Type the command below in the command prompt, and press Enter. (see screenshot below)

compact /c "full path of folder" /i /Q

Note   Note
Substitute full path of folder in the command above with the actual full path of the folder that you want to compress.

For example: compact /c "C:\Users\Russell\Desktop\New folder" /i /Q


Click image for larger version. 

Name:	Compress_only_folder_command.png 
Views:	137 
Size:	30.0 KB 
ID:	42727






Compress or Uncompress Files and Folders in Windows 10 OPTION SIX Compress or Uncompress Files and Folders in Windows 10
To Compress a Folder and its Contents in Command Prompt

1. Open a command prompt or elevated command prompt depending on the access rights you need for the folder and its contents you want to compress.

2. Type the command below in the command prompt, and press Enter. (see screenshot below)

compact /c /s:"full path of folder" /i /Q

Note   Note
Substitute full path of folder in the command above with the actual full path of the folder that you want to compress it and its contents.

For example: compact /c /s:"C:\Users\Russell\Desktop\New folder" /i /Q


Click image for larger version. 

Name:	Compress_folder_and_contents_command.png 
Views:	160 
Size:	36.0 KB 
ID:	42722






Compress or Uncompress Files and Folders in Windows 10 OPTION SEVEN Compress or Uncompress Files and Folders in Windows 10
To Uncompress Only a Folder in Command Prompt

1. Open a command prompt or elevated command prompt depending on the access rights you need for the compressed folder you want to uncompress.

2. Type the command below in the command prompt, and press Enter. (see screenshot below)

compact /u "full path of folder" /i /Q

Note   Note
Substitute full path of folder in the command above with the actual full path of the folder that you want to uncompress.

For example: compact /u "C:\Users\Russell\Desktop\New folder" /i /Q


Click image for larger version. 

Name:	Uncompress_only_folder_command.png 
Views:	121 
Size:	25.7 KB 
ID:	42731






Compress or Uncompress Files and Folders in Windows 10 OPTION EIGHT Compress or Uncompress Files and Folders in Windows 10
To Uncompress a Folder and its Contents in Command Prompt

1. Open a command prompt or elevated command prompt depending on the access rights you need for the compressed folder and its contents you want to uncompress.

2. Type the command below in the command prompt, and press Enter. (see screenshot below)

compact /u /s:"full path of folder" /i /Q

Note   Note
Substitute full path of folder in the command above with the actual full path of the folder that you want to uncompress it and its contents.

For example: compact /u /s:"C:\Users\Russell\Desktop\New folder" /i /Q


Click image for larger version. 

Name:	Uncompress_folder_and_contents_command.png 
Views:	178 
Size:	32.4 KB 
ID:	42730



That's it,
Shawn