Good compression software, also known as "2345 Good Pressure", is a domestic excellent compression software, is currently free of charge, according to the official website, the software is free of charge. Website address: http://haozip.2345.com/
This article mainly introduces the command line mode usage of the software. At present, compression software support command line mode is also WinRAR, a foreign excellent old compression software, winrar command line mode please refer to my other blog:
WinRAR's command-line mode usage Introduction-fetty-Blog Park http://www.cnblogs.com/fetty/p/4769279.html
Directly on my test code:
1 @echo off2 :: Compress all files, including current directory name, zip format3HAOZIP_CMD\HAOZIPC A-tzip all 1.Zip. \test_file4 5 :: Compress all files, including subdirectories6HAOZIP_CMD\HAOZIPC A-tzip all 2.Zip. \test_file\*7 8 :: Compress all txt files, including sub-directories9HAOZIP_CMD\HAOZIPC A-tzip all txt1.Zip. \test_file\*.txt-RTen One :: Compress all txt files, only current directory AHAOZIP_CMD\HAOZIPC A-tzip all txt2.Zip. \test_file\*. txt - - :: Compress all files, include subdirectories, and set password is 123456789ABC theHAOZIP_CMD\HAOZIPC A-TZIP-P123456789ABC all 3.Zip. \test_file - - :: Compress all txt files, only the current directory, and set the password is "Hello 123" -HAOZIP_CMD\HAOZIPC a-tzip-p"Hello, 123 ."All TXT3.Zip. \test_file\*. txt + - :: Compress all files, including current directory name, 7z format +HAOZIP_CMD\HAOZIPC A-t7z all 11.7z. \test_file A at:: Compress all files, including the current directory name,Tar. gz format -HAOZIP_CMD\HAOZIPC a-ttar.gz all 12.Tar. gz. \test_file - - :: Unzip the compressed file to the current directory, not including the path within the compressed package -HAOZIP_CMD\HAOZIPC e all 1.Zip - in : : Unzip the compressed file into the directory: all 1Folder, does not contain the path within the compressed package -HAOZIP_CMD\HAOZIPC e all 1.Zip-o all 1Folder to + :: Unzip the compressed file to the current directory, including the path within the compressed package -HAOZIP_CMD\HAOZIPC x all 1.Zip the * : : Unzip the compressed file into the directory: all 1Folder, does not contain the path within the compressed package $HAOZIP_CMD\HAOZIPC x all 1.Zip-o all 1FolderPanax Notoginseng - :: View the contents of the compressed package, do not understand the pressure theHAOZIP_CMD\HAOZIPC L all 1.Zip +Pause
The above code in the HAOZIPC is good pressure software installation directory of "HaoZipC.exe" program, if you want to detach from the installation environment to use, you need to extract the file:
Basic Syntax
syntax a (add command)
Add a file to the Compress file command.
- Example: HAOZIPC a-tzip archive.zip subdir\* Add all files from the SubDir folder to the Archive.zip compressed file. HAOZIPC a-tzip files.zip "program files\*"-R adds all files from the program folder to the Files.zip compressed file.
- Options that can be used in conjunction with this command:-I (including file name),-m (set compression algorithm),-p (set password),-R (Recursive subdirectory),-t (set compressed file format),-u (update option),-W (set working directory),-X (exclude file)
- Additional command line: D (delete), U (update)
Syntax D (delete command)
Deletes a file from the compressed file.
- Example: HAOZIPC d archive.zip *.bak remove *.bak files from Archive.zip compressed files.
- Options that can be used in conjunction with this command:-I (including file name),-m (set compression algorithm),-p (set password),-R (Recursive subdirectory),-u (update option),-W (set working directory),-X (exclude file)
- Additional command line: A (add), U (update)
- Other options:-U (update option)
Syntax e (Release command)
Releases the file from the compressed file into the current directory. Or to the specified output folder. Output folder settings can be changed by the-O (Set output folder) option.
This command places all the freed files into a folder. If you want to use the full path to release the file, you must use the X (full path release) command.
When overwriting an existing file, the user is prompted to do the next steps. Unless the user has customized the-y (All) option.
- The following responses are supported:
response |
shorthand |
Description |
Yes (yes) |
y |
  |
No (NO) |
N |
  |
always |
A |
Treat all queries with YES |
Skip (skip) |
S |
All queries are NO to treat |
Quit (exit) |
Q |
< p> exiting the program |
- Example: HAOZIPC e archive.zip Release all files from the compressed file Archive.zip to the current folder. HAOZIPC e archive.zip-oc:\soft *.cpp release *.cpp files from the compressed file Archive.zip to the C:\soft folder.
- Options that can be used in conjunction with this command:-ao (overwrite mode),-I (including file name),-O (Set output directory),-p (set password),-R (Recursive subdirectory),-X (exclude file),-y (All)
- Additional command line: X (full path free)
Syntax L (List command)
Lists the contents of the compressed file.
- Example: HAOZIPC l Archive.zip Lists the contents of the compressed file archive.zip.
- Options that can be used in conjunction with this command:-I (including file name),-R (Recursive subdirectory),-X (Exclude file
Grammar T (Test command)
Test the integrity of the compressed file.
- Example: HAOZIPC t archive.zip *.doc tests the integrity of *.doc files in a compressed file archive.zip.
- Options that can be used in conjunction with this command:-I (including file name),-R (Recursive subdirectory),-p (set password),-x (exclude file)
Syntax u (update command)
Replace the older file with a newer file in the compressed file.
- Example: HAOZIPC u archive.zip *.doc update *.doc file in compressed file archive.zip.
- Options that can be used in conjunction with this command:-I (including file name),-m (set compression algorithm),-p (set password),-R (Recursive subdirectory),-t (set compressed file format),-u (update option),-W (set working directory),-X (exclude file)
- Additional command line: A (delete), d (delete)
- Other options:-U (update option)
Syntax x (full path release command)
In the current directory, use the full path to release files from the compressed file. Or to the specified output folder. For more details, see the E (Release) command.
- Example: HAOZIPC x archive.zip release all files from the compressed file Archive.zip to the current folder. HAOZIPC x archive.zip-oc:\soft *.cpp release *.cpp files from the compressed file Archive.zip to the C:\soft folder.
- Options that can be used in conjunction with this command:-ao (overwrite mode),-I (including file name),-O (Set output directory),-p (set password),-R (Recursive subdirectory),-X (exclude file),-y (All)
- Other command line: E (free)
Introduction to the command line mode usage of good pressure (haozip)