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.
Although the official version still needs to wait until the summer, but the Win10 technology preview
Author: Shen Yi What are the benefits to Power Optimization management? Optimized powe
After upgrading to Win10, many friends found that their computer has a lot of problems, such as win1
There is a new version of Win10 for PC! In the early morning, Microsoft officially launched
Invalid solution for Apache module in XAMPP under win8
Windows8 set boot automatic dial
How to create a shutdown tile on Windows 8 for fast shutdown
Win8 upgrade to Win8.1 black screen, blue screen solution
Win10 system blocking ad blocking program running method
How does the Win8.1 system display the taskbar in the Modern application
How to set win8 gesture operation win8 gesture operation set diagram culture and education
Microsoft Windows 8 system released at the end of October
The latest version of the SkyDrive application will support live tile feature
Windows10 system activation skills Win10 activation effective method Raiders
Win8 Open Class: How to activate genuine system after reloading
Tip: Windows 7's XP mode can stop malware from running
Win8 improved one-click mount VHD virtual disk tutorial
Win10 preview version 10056 can not upgrade the update how to do
What should I do if Win10 Thunder has been crashing?
Win7 system web video can not see the solution
Win10 system application store program download directory how to view
Win7 system can not store files on the desktop how to solve
Ten steps to create a secure personal web server
How to solve the application error28000 when installing the U disk?