Haozip Command help

Source: Internet
Author: User

Go to official documents: http://www.haozip.com/help/help11-1.htm

Why do I see this document?

Recently, I want to write a batch processing file to help complete the daily packaging and publishing work. In the intermediate process, you need to compress the source code (PS: regardless of the difference between WinRAR and other compressed soft), so you want to call the compression command.

The first result of the survey: using batch processing to easily compress files, we need to use winrar.exe. However, due to WinRAR charges and other issues, the PC is not installed, but haozip. Go to the installation directory, call the EXE command, and find that there are many related commands .... I don't know which one to use?

So I got the second result: the basic syntax of the haozip command line-official documentation, haha, so easy !!! With the following

Basic syntax

Syntax A (ADD)

Command to add a file to a compressed file.

  • Example: haozipc A-tzip archive.zip subdir \ * add all files from the subdir folder to archive.zip compressed files. 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 with this command:-I (including file names),-M (set compression algorithm),-P
    (SET Password),-R (recursive subdirectory),-T (set the compressed file format),-u
    (Update option),-W (set working directory),-X (exclude files)
  • Other command lines: D (delete), u (update)

Syntax D (delete)

Delete a file from a compressed file.

  • Example: haozipc D archive.zip *. Bak: Delete the *. Bak file from the archive.zip compressed file.
  • Options that can be used with this command:-I (including file names),-M (set compression algorithm),-P
    (SET Password),-R (recursive subdirectory),-U (update option),-W
    (Set the working directory),-X (exclude files)
  • Other command lines: A (ADD), u (update)
  • Other options:-U (update options)

Syntax E (Release)

Release the file from the compressed file to the current directory. Or to the specified Output Folder. You can use the-O (set Output Folder) option to change the Output Folder settings.

This command places all released files in one folder. If you want to release a file using the full path, you must use the X (full path release) command.

When the existing file is overwritten, the system prompts you how to perform the next operation. Unless you have customized the-y (all) option.

  • The following responses are supported by pressure relief:
    Response Shorthand Description
    Yes (yes) Y  
    No (NO) N  
    Always (always) A Treat all inquiries with yes
    Skip (skip) S Treat all inquiries with no
    Quit (Exit) Q Exit 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 from the compressed file archive.zip, release the *. cpp file to the C: \ soft folder.
  • Options that can be used with this command:-AO (overwrite mode),-I (including file name),-o
    (Set output directory),-P (SET Password),-R (recursive subdirectory),-x
    (Exclude files),-y (all)
  • Other command lines: X (full path release)

Syntax L (list)

List compressed file content.

  • Example: haozipc l archive.zip lists the contents of the compressed file archive.zip.
  • Options that can be used with this command:-I (including file name),-R (recursive subdirectory),-x
    (Exclude files

Syntax T (test)

Test the integrity of the compressed file.

  • Example: haozipc t archive.zip *. Doc test the integrity of the *. DOC file in the compressed file archive.zip.
  • Options that can be used with this command:-I (including file name),-R (recursive subdirectory),-P
    (SET Password),-X (exclude files)

Syntax U (update)

Replace older files with newer files in the compressed files.

  • Example: haozipc U archive.zip *. Doc. In the compressed file archive.zip, update the *. DOC file.
  • Options that can be used with this command:-I (including file names),-M (set compression algorithm),-P
    (SET Password),-R (recursive subdirectory),-T (set the compressed file format),-u
    (Update option),-W (set working directory),-X (exclude files)
  • Other command lines: A (delete), D (delete)
  • Other options:-U (update options)

Syntax X (full path release)

In the current directory, use the full path to release the file 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 from the compressed file archive.zip, release the *. cpp file to the C: \ soft folder.
  • Options that can be used with this command:-AO (overwrite mode),-I (including file name),-o
    (Set output directory),-P (SET Password),-R (recursive subdirectory),-x
    (Exclude files),-y (all)
  • Other command lines: E (Release)

PS: Reprinted work, mainly for future convenience, and hope to inspire new users who need help.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.