Java decompress zip-multiple files (including folders)
Compress multiple files and folders to decompress complicated file directories.
The compression method uses variable parameters. one or more files can be compressed. Arrays can be written or written to the parameter list one by one...
[Java]ZipFiles (zip, "abc", new File ("d:/English"), new File ("d:/release data .xls "));
Test file directory structure:
This article describes how to compress and decompress the zip file in Python and try to crack the password of the zip file. It provides a simple example of using the zipfile module, for more information about how to compress and decompress zip files, see python zipfile.
For example, in the directory where The py script is located, there are the following files:
readability/readability.jsreadability/readab
For those who have just come in contact with Linux, it will certainly give Linux a lot of different file names to get dizzy. Let's just say, in the case of compressed files, we know that there are only two types of compressed files that are most common in Windows, one is zip and the other is. rar. But Linux is different, it has. GZ, tar.gz, tgz, bz2, and so on. Many compressed filenames, such as Z,. Tar, in addition to the. zip and.
Bat automatically decompress and release the asp.net program. bat decompress asp.net.
1. decompress the package
2. Replace the file
3. Stop the service
4. Recreate the virtual directory
5. Restart the service.
@ Echo 1. Zipexe compression assembly path @ echo 2. zipFileName compression file path @ echo 3. ylxt decompression file path @ echo 3. Files not modified
How to decompress iso files in Linux and decompress iso files in linux
In Linux, how does one extract iso files? You can use the mount command to process
[Root @ DB-Server tmp] # ls/tmp/rhel-server-5.7-x86_64-dvd.iso
// Tmp/rhel-server-5.7-x86_64-dvd.iso
[Root @ DB-Server tmp] # cd/mnt/
[Root @ DB-Server mnt] # mkdir cdrom
[Root @ DB-Server mnt] # mount-o loop/tmp/rhel-server-5.7-x86_64-dvd.is
The "preface" is explained in the blog post:This article will introduce through the personal tone of the Linux platform related compression and decompression command related knowledge, in the current time point "May 23, 2017 " under the grasp of the technical level is limited, there may be a lot of knowledge understanding is not deep enough or comprehensive, I hope you point out the problem of common exchange, In the follow-up work and study, if found that the content of this article and the act
sourceFile = new File (sourceFileName );Byte [] buf = new byte [1, 1024];
// Compress the file nameFile objFile = new File (zipFilename );ZipOutputStream zos = new ZipOutputStream (new FileOutputStream (objFile ));ZipEntry ze = null;// Create a ZipEntry and set the Name and other attributesZe = new ZipEntry (sourceFile. getName ());Ze. setSize (sourceFile. length ());Ze. setTime (sourceFile. lastModified ());
// Add ZipEntry to zos and then write the actual file contentZos. putNextEntry (ze );I
Decompress: unzip FileName.zip
Compression: zip FileName.zip DirName
In addition, Linux has corresponding methods to decompress the compressed files .zipand .rar in Windows:
1)for. Zip
Linux provides zip and unzip programs, zip is a compression program, and unzip is a decompression program. They have many Parameter options. Here we will only give a brief intr
command.Deleting file (the original file1 file will be deleted after compression is completed. Note: The m command only operates on the file)[Root @ localhost ~] # Rar a abc.rar file1Note: If a file1 file already exists in the abc.rar file, the file1 file will be updated. And the original file1 file still exists in the current directory. If you want to move file1file to file1.rar, run the m command. You ca
Php compression and decompression of strings, php decompression of strings. Php: how to compress and decompress strings. php: how to compress and decompress strings. Share it with you for your reference. The following describes how to compress and decompress strings in php:
This document describes how to compress and decom
How to decompress Or package files in linux and decompress files in linux
Use the tar command to compress or decompress the package. Format: tar [Option] [file]
Package and compress the file: tar-czvf compressed package name .tar.gz
Decompress and expand the compressed package: tar-xzvf compressed package name .tar.
Installation and configuration of MySQL green decompress version, mysql green decompress version
The MySQL version used in this example is the MySQL-5.6.17-winx64.
[For more information, see http://blog.csdn.net/mahoking]
Procedure:
1. Install the MySQL database
1. Download The mysql-5.6.17-winx64.zip file.2. Decompress to the specified directory, in this example
Install mongoDB in windows (decompress version) to close the service tutorial. Decompress mongodb
I am going to put the database on disk D, so I created a mongoDB folder under disk D, and created the mongoDB folder and mongoDBdata folder respectively under it, which are used to store data
Decompress the downloaded zip package to d: \ mongoDB,
The following direc
Php decompress the file code to decompress php online
This article mainly introduces the php decompression file code. You can use this code to decompress php files online. For more information, see
The Code is as follows:
$ Zip = zip_open ("moooredale.zip ");
If ($ zip ){
While ($ zip_entry = zip_read ($ zip )){
$ Fp = fopen (zip_entry_name ($ zip_entry)
operation of the ============zip file ==================================Zip-r Data.zip DataExplanation: The data folder was compressed into the data.zip format.Unzip Data.zipExplanation: Extract the Data.zip file to the current folder.-----------------The following are some detailed instructions--------------------------1. I want to compress a file abc.txt and a directory dir1 into Yasuo.zip:# zip-r Yasuo.zip abc.txt Dir12. I downloaded a yasuo.zip file and want to unzip it:# Unzip Yasuo.zip3. I
recovered after RPComputer room of the network is very slag B, often in my here to run a good file with the flying autumn sent to others will not be used, the intermediate transmission damagedRAR is also, so RAR plus 5% recovery record is necessary to prevent open can also be repaired= = Note = =※ in my production test rar 3.90 version of the command line version of RA
Write down the two most common rar commands
Package the www.2cto.com directory as www.2cto.com. rar
# Rar wwww.2cto.com. rar./www.2cto.com/
Decompress andy.rar to the current directory
# Rar x www.2cto.com.
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.