Current location - Education and Training Encyclopedia - University rankings - How to extract the specified zip file to the specified directory with cmd command under windows?
How to extract the specified zip file to the specified directory with cmd command under windows?
Copy RAR.exe and UNRAR to the c:\windows folder.

Press win+r, enter cmd, and then click OK.

At the prompt, enter: unrar e compressed file path \ name decompression path, as shown in the following figure:

The effect is as follows:

Extended answer:

Practical command:

Command m means move (after compression, delete the source file).

Command a indicates increasing compression.

Command s means creating a self-extracting file.

Practical switch:

-r contains subfolders.

-ai ignores file attributes.

The -cl file name is lowercase.

-cu file name is capitalized.

-ed Ignore empty folder.

-ep ignores path information.

-ep 1 means to ignore the compressed root folder.

-ep2 contains the most complete path information (except the drive).

-df means to delete the source file after compression.

-dr deletes the source file to the recycle bin.

-or automatically rename files with the same name, such as filename.txtfilename (1). Txt file name (2).