I use the more reliable, also relatively simple, where archiver is very powerful, support ZIP format tar format, only need to provide a path to compress the existing folder.Compression:1 varFS = require (' FS ');2 varArchiver = require (' archiver '));3 4 varOutput = Fs.createwritestream (' Archiver-unzip.zip ');5 varArchive = archiver (' Zip ');6 7Archive.on (' Error ',function(err) {8 Throwerr;9 });Te
CEN decompress the. ZIP file and search a lot of methods on the Internet, using System. IO. compression. GZipStream uses the J # library function and the Java-based library function. However, many of them are not very good. In the end, it is still the System function System. shell. folder. copyHere (oItem [, intOptions]) is the best choice. The specific method is as follows:
1. Add the reference Shell32.dll
CEN decompress the. ZIP file and search a lot of methods on the Internet, using System. IO. compression. GZipStream uses the J # library function and the Java-based library function. However, many of them are not very good. In the end, it is still the System function System. shell. folder. copyHere (
OItem
[
,
IntOptions. The specific method is as follows:
1. Add the reference Shell32.dll, which can be fo
Compressed Zip package under Windows, after decompression in Ubuntu display as garbled problem1.zip files after decompression file name garbled:The first step is to install 7zip and CONVMV first (if not previously installed)Execute the installation command at the command line as follows:sudo apt-get install p7zip-full CONVMVThe second step assumes that the
Directory1. Introduction to Commands2. Common parameter Introduction3. Example4. Direct access to the bottomIntroduction to CommandsZip is a widely used compression program under the Linux system, and the file is compressed with a ". zip" extension. The zip command is used to compress the file into a common
Command Line2 zip and unzip, line2unzipCommand Line-ZIP 1. know zip
You can use man zip to obtain the man page of the zip command. The zip command can be used to compress the package
Tags: command working folder compression test operating system Hang file Decompression = = =NOTE: * Compress into limited. zip format filesCommon decompression:[Email protected] test]# Unzip-o test.zip-d tmp/Unzip the compressed file Test.zip under the specified directory TM
Command name: zipFunction Description: Compress the file.Syntax:zip [-acddffghjjkllmoqrstuvvwxyz$][-b >][-ll][-n >][-t >][- >][Compressed Files [file ...] [-i >][-x ;] Note:zip is a widely used compression program that compresses files that have a ". zip" extension. Parameters-A adjusts the executable auto-unzip file
Reason:Java encoding of the text is based on Unicode, so if Zipinputstream and Zipoutputstream to deal with the compression and decompression work, encountered in the Chinese file name or path, it is of course the Unicode to deal with ROM. However, now on the market compression and decompression software, such as WinZip, but does not support Unicode, a file name in Unicode-encoded
Zip is a widely used compression program, the file will be compressed after the additional ". zip" the compressed file for the extension. Parameters-A adjusts the executable auto-unzip file.-b-C adds a comment to each compressed
-O to set the latest change time for all files in the compressed file to the time of compression
-x specifies that you do not process which files in the. zip archive
-I only compress files that match the criteria
-F attempt to repair corrupted compressed file
-D does not establish directory names in compressed files
-A adjust
NOTE: * Compress into limited. zip format filesCommon decompression:[Email protected] test]# Unzip-o test.zip-d tmp/Unzip the compressed file Test.zip under the specified directory TMP , and require the unzip command to overwrite the original
Recently cleaned up the Linux zip/unzip command, as follows:
Command name: Zip
Function Description: Compress file.
Syntax: Zip [-acddffghjjkllmoqrstuvvwxyz$][-b
Supplemental Note: Zip is a widely used compression program, th
Command name: zipFunction Description: Compress the file.Syntax:zip [-acddffghjjkllmoqrstuvvwxyz$][-b >][-ll][-n >][-t >][- >][Compressed Files [file ...] [-i >][-x ;] Note:zip is a widely used compression program that compresses files that have a ". zip" extension. Parameters-A adjusts the executable auto-unzip file
of the disk on which the first compressed file is stored.-
two. Unzip commandFunction Description: Unzip extract zip file commandSyntaxParameters-C Displays the uncompressed results to the screen and converts the characters appropriately.-F to update existing files.-L Displ
not display the instruction execution process.-R recursive processing of all files and subdirectories under the specified directory.-S contains system and hidden files.-t-T checks that each file in the backup file is correct.-U replaces the newer file with the compressed file.-V Displays the instruction execution proc
Compression zip under Linux, unzip unzip commandI personally test the summary:Linux installation Unzip zipInstall command: Yum install-y unzip zip# Unzip Yasuo.zipMethod One:Install com
Example: compressing the contents of the current directory on the server as a xxx.zip fileZip-r xxx.zip./*Unzip the zip file to the current directoryUnzip Filename.zip============================Another: Some servers do not install the ZIP package does not execute the zip co
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.