1. Archive without compressing
7z a -t7z -mx=0 OutputFilename InputFilename
Descryption:
a: command, add to archive.
-t: switch, specifies archive type.
-mx: specifies level of compression
-m: switch, compression Method, x: parameter of this switch.
e.g. [-mx=0] or [-mx=1] or [-mx=3]or [-mx=5] or [-mx=7] or [-mx=9]
Level of compression, e.g.:
0: No compression; 1: Fastest compressing. 9: Ultra compressing.
Input:Single/Mutiple file(s) and/or single/multiple folder(s).
----------
2. Compress - ultra
7z a -t7z -mx=9 OutputFilename InputFilename
Notice: -mx=0 -> -mx=9
----------
3. Split to volumns
3.1 Archive without compressing: 7z a -t7z -mx=0 -v20m OutputFilename InputFilename
3.2 Archive and compress: 7z a -t7z -mx=9 -v20m OutputFilename InputFilename
----------
4. Add password
7z a -t7z -pYourPassword OutputFilename InputFilename
----------
5. Hide content - hide info in head file, usually in the first volumn if any.
7z a -t7z -pYourPassword -mhe OutputFilename InputFilename
-mhe: Enables or disables archive header encryption.
he: Parameter of -m, header encryption.
----------
6. List up content
7z l ArchiveName
l: command, list.
----------
7. Extract archive
7.1 e - Extract files to one directory
7z e InputFilename
Descryption: extracts all files to the current directory.
7z e InputFilename -oc:\soft *.cpp -r
Descryption: extracts all *.cpp files from archive to c:\soft folder.
7.2 x - Extract files with full paths
7z x InputFilename
Descryption: extracts all files to the current directory.
7z x InputFilename -oc:\soft *.cpp -r
Descryption: extracts all *.cpp files from archive to c:\soft folder.