Zipped (compressed) files take up less storage space and can be transferred to other computers more quickly than uncompressed files. In Windows, you work with zipped files and folders in the same way that you work with uncompressed files and folders. Combine several files into a single zipped folder to more easily share a group of files.
If you add encrypted files to a zipped folder, they'll be unencrypted when they're unzipped, which might result in unintentional disclosure of personal or sensitive information. For that reason, we recommend that you avoid zipping encrypted files.
Some types of files, like JPEG images, are already highly compressed. If you zip several JPEG pictures into a folder, the total size of the folder will be about the same as the original collection of pictures.
Want to save space on your computer or make it easy to send a bunch of files at once? Creating a ZIP file compresses one or more files or folders into a single file, which not only keeps you organized, but can also free up space on your hard drive. You can even lock your ZIP files with passwords for fast and easy encryption. This wikiHow guide will walk you through creating ZIP files and folders on Windows, macOS, and Linux.
Whether you're using Windows or macOS, you don't need additional software to create and open zip files. That's because the basic zip file features are built into the operating system.
Opening a zip file in macOS is slightly different from Windows. Instead of opening the zip file directly, it will unzip the files and place them in a new folder. You can then open the folder to access individual files.
If you need to share a large file or multiple files, a compressed file takes up less storage space and can be sent faster because of its smaller file size. Learn how to compress or uncompress files on your iPhone or iPod touch.
If you selected one file, a ZIP file with the same filename saves to that folder. If you selected multiple files, a ZIP archive named Archive.zip saves to that folder. To change its name, touch and hold on the ZIP archive, then select Rename.
If you need to share a large file or multiple files, a compressed file takes up less storage space and can be sent faster because of its smaller file size. Learn how to compress or uncompress files on your iPad.
Depending on your Android device, you may have the File Manager app as a built-in way to create ZIP files. But if it's missing, downloading a third-party app like WinZip is an easy way to zip your files. Just note that to use all of WinZip's features, you'll need to buy the premium version.
3. If you're selecting a single file, hit the three dots directly to the right of it. If you're selecting multiple files, hold your finger down on one and then select all the files you'd like.
zip(zipfilename,filenames) compresses the contents of filenames into the zip file zipfilename. zip recursively compresses the content in folders. The resulting zip file contains the paths of filenames relative to the current folder. The zip file does not store absolute paths.
entrynames = zip(___) returns a cell array of character vectors containing the names of the files included in zipfilename. You can use this syntax with any of the input argument combinations in the previous syntaxes.
Folders must include a path relative to the current folder or an absolute path. On UNIX® systems, folders also can start with ~/ or ~username/, which expands to the current user's home folder or the specified user's home folder, respectively. You can use the wildcard character * when specifying files or folders, except when relying on the MATLAB path to resolve a file name or partial path name.
The Compress-Archive cmdlet creates a compressed, or zipped, archive file from one or morespecified files or directories. An archive packages multiple files, with optional compression, intoa single zipped file for easier distribution and storage. An archive file can be compressed by usingthe compression algorithm specified by the CompressionLevel parameter.
This example compresses files from different directories and creates an archive file. A wildcard isused to get all files with a particular file extension. There's no directory structure in thearchive file because the Path only specifies file names.
The Path parameter accepts specific file names and file names with wildcards, *.vsd. ThePath uses a comma-separated list to get files from different directories. The compression levelis Fastest to reduce processing time. The DestinationPath parameter specifies the locationfor the Draft.zip file. The Draft.zip file contains Draftdoc.docx and all the files with a.vsd extension.
Absolute path and file names are used because the LiteralPath parameter doesn't acceptwildcards. The Path uses a comma-separated list to get files from different directories. Thecompression level is Fastest to reduce processing time. The DestinationPath parameterspecifies the location for the Draft.zip file. The Draft.zip file only contains Draftdoc.docxand diagram2.vsd.
This example compresses a directory and creates an archive file that includes the rootdirectory, and all its files and subdirectories. The archive file has a directory structure becausethe Path specifies a root directory.
Compress-Archive uses the Path parameter to specify the root directory, C:\Reference. TheDestinationPath parameter specifies the location for the archive file. The Draft.zip archiveincludes the Reference root directory, and all its files and subdirectories.
This example compresses a directory and creates an archive file that excludes the root directorybecause the Path uses an asterisk (*) wildcard. The archive contains a directory structurethat contains the root directory's files and subdirectories.
Compress-Archive uses the Path parameter to specify the root directory, C:\Reference with anasterisk (*) wildcard. The DestinationPath parameter specifies the location for the archivefile. The Draft.zip archive contains the root directory's files and subdirectories. TheReference root directory is excluded from the archive.
Compress-Archive uses the Path parameter to specify the root directory, C:\Reference with astar-dot-star (*.*) wildcard. The DestinationPath parameter specifies the location for thearchive file. The Draft.zip archive only contains the Reference root directory's files and theroot directory is excluded.
Get-ChildItem uses the Path parameter to specify two files from different directories. Eachfile is represented by a FileInfo object and is sent down the pipeline to Compress-Archive.The two specified files are archived in PipelineFiles.zip.
This example sends a directory down the pipeline to create an archive. Files are sent asFileInfo objects and directories as DirectoryInfo objects. The archive's directory structuredoesn't include the root directory, but its files and subdirectories are included in the archive.
This example shows how recursion can duplicate files in your archive. For example, if you useGet-ChildItem with the Recurse parameter. As recursion processes, each FileInfo andDirectoryInfo object is sent down the pipeline and added to the archive.
Get-ChildItem uses the Path parameter to specify the root directory, C:\TestLog. TheRecurse parameter processes the files and directories. A DirectoryInfo object is created fortestsub and a FileInfo object testlog.txt.
Each object is sent down the pipeline to Compress-Archive. The DestinationPath specifies thelocation for the archive file. The Path parameter isn't specified because the pipeline objectsare received into parameter position 0.
The command updates Draft.zip with newer versions of existing files in the C:\Referencedirectory and its subdirectories. And, new files that were added to C:\Reference or itssubdirectories are included in the updated Draft.zip archive.
Specifies the path or paths to the files that you want to add to the archive zipped file. Unlike thePath parameter, the value of LiteralPath is used exactly as it's typed. No characters areinterpreted as wildcards. If the path includes escape characters, enclose each escape character insingle quotation marks, to instruct PowerShell not to interpret any characters as escape sequences.To specify multiple paths, and include files in multiple locations in your output zipped file, usecommas to separate the paths.
Using recursion and sending objects down the pipeline can duplicate files in your archive. Forexample, if you use Get-ChildItem with the Recurse parameter, each FileInfo andDirectoryInfo object that's sent down the pipeline is added to the archive.
The ZIP file specification does notspecify a standard way of encoding filenames that contain non-ASCII characters. TheCompress-Archive cmdlet uses UTF-8 encoding. Other ZIP archive tools may use a different encodingscheme. When extracting files with filenames not stored using UTF-8 encoding, Expand-Archive usesthe raw value found in the archive. This can result in a filename that is different than the sourcefilename stored in the archive.
Microsoft Windows provides a utility that allows you to zip multiple files into a single compressed file format. This is especially helpful if you are emailing files as attachments or if you need to conserve space (zipping files can reduce file size by up to 50%). 2b1af7f3a8