How to use Win10 to extract files from Win10

  
        

Computer hard drives are limited, so using the command line to extract files is a good idea. Compared to ZIP file compression or RAR file compression, it is much more convenient to use the command line to decompress files. So how does Win10 use the command line to decompress files? Let's take a look at it!

However, this compression method is only valid for disk partitions formatted as NTFS. If you try to use this method in a disk partition formatted like FAT32 format, you will see a prompt like this (the file system does not support compression):

Also note that:

Compressed files can save disk space, but it can affect performance, because Windows needs to perform additional decompression before accessing these files.

This way of compressing files has no obvious effect on images, videos, and music types.

If you want to transfer compressed files over the network, file compression will not work, Windows must first decompress it before proceeding.

The compressed file will show a special blue double arrow in the upper right corner. If you are obsessive-compulsive, you can't stand it. This compression may not be suitable for you.

The specific operation is as follows:

1. Search and open cmd in Microsoft Xiaona. If you prefer to use PowerShell, PowerShell will also work. This article uses the command prompt to demonstrate.

2. Next, let's select the target file. For example, if there is a file named system.dat in the H:\\ROM folder of the small computer, select this one.

3, enter the resource manager, right click on this file, and then click on the properties, we can see that its file size is 547MB, occupying 547MB.

4, to compress it, then we need to execute the following command at a command prompt (CMD):

01compact /c H: \\ ROM \\ system.dat

Copy code

During the compression process, we need to wait for a while. After the compression is complete, you will see a prompt like this:

5. At this point, we enter the resource manager. Go to the folder where the file is located. If the icon in the upper right corner of the file has been marked with a blue double arrow, the file has been compressed successfully.

6, right click on this file, click on the properties, you can see that its file size is still 547MB, but the footprint has been reduced to 383MB.

7, to compress all the files in a subfolder of a folder, for example, we want to compress all the files in the subfolder under H:\\ROM, you can first switch the working directory to H : \\ ROM, the following command:

01cd /d H: \\ ROM

copy the code

after a successful handover, you will see a series of characters before the cursor becomes target working directory:

8, then enter and execute the following commands:

01compact /c /s

copy the code

in the process of compression In, we need to wait for a while, after the compression is complete, you will see a prompt like this:

The screenshot is long, we choose a section

9. Before the compression, the size of the folder It is 559MB, and the occupied space is 559MB.

10. After compression, the size of this folder is 559MB, and the occupied space is 392MB.

11, to extract files or folders is also very simple, for example, we have to extract the compressed H:\\ROM\\system.dat file, you can use the following command:

01compact /u H: \\ ROM \\ system.dat

copy the code

in the process of decompression, we need to wait for some time, after the extraction is completed, you will see this prompt:

12. If you want to extract all the files in the subfolder of a compressed folder, for example, we need to extract all the files in the compressed subfolder under H:\\ROM, then you can working directory to H: \\ ROM, the following command:

01cd /d H: \\ ROM

copy the code

after a successful handover, you will see the first cursor string of words becomes a target working directory:

13, then enter and execute the following command:

01compact /u /s

copy the code

In the process of decompression, you need to wait for a while, after the decompression is completed, you will see such a prompt;

Screenshot long, we selected some

The above is Win10 lines to solve specific methods of operation of the compressed file using the command for the hard disk space is limited partners, is undoubtedly a great boon.

Copyright © Windows knowledge All Rights Reserved