Jan 04, 2019 The Compact command. The command-line utility Compact is used to control Windows File Compression. Run “compact /?” in a Windows Command Prompt to see a list of its options. In that Windows Command Prompt, change directory (CD) to the folder that contains the compressed folder (C: t in my example) and run “compact /s”. Restore Missing “Compressed (zip) Folder” Option in Windows 10 By Mitch Bartlett 13 Comments I had a problem with Microsoft Windows 10 where the “ Compressed (zip) Folder ” option was missing from the “. Mar 05, 2013 Is it possible to create the zip files with the same file creation date as the origininal files (non-zipped files)? I want to delete the zipped files that are older than 6 months from the archieve directory but after those files are zipped they show the current date and time.
If you've already created a ZIP file, you can still create a self extractor using these steps. Open the zip file you wish to create a self extractor from, Click on the save icon and in the Save type, select PKSFX; From the SFX (self extractor) Editor, edit any options you wish to include.
Starting from PowerShell 5.0 (Windows 10), it is possible to Zip files and folders and Unzip archives in Windows using Compress-Archive and Expand-Archive PowerShell commands. Zip a file or a folder from the command line in Windows: PS C: Compress-Archive -Path 'C: input' -DestinationPath 'C: output.zip' Zip all files in a folder.
7-Zip can be used to create more than 7z compressed files, it can also create GZip compressed files and directories. GZip can compressed a single file on its own, however if you need to compress a directory an extra step is required where the directory is first archived with the help of tar and then compressed with GZip. This tutorial will cover single file compression and directory compression.
First Things First
Download 7zip from http://www.7-zip.org/ and install the application.
Gzip Single File
Start the 7zip application and browse the location where the file you want to compress is located. Right click on the file_name > 7-Zip > Add to archive… For Archive format: select gzip and click on OK to start compressing. Compression progress. The file is now compressed.
Gzip Directory
Compressing a directory takes an extra step, first you need to create a tar of the directory you want to compress. Select the source directory > 7-Zip > Add to archive… For Archive format: select tar and click on OK. Progress being displayed. Once again go back to 7-Zip select the new tar file(filename.tar) > 7-Zip > Add to archive… For Archive format select gzip and click on OK. Progress being displayed. The resulting compressed directory with the new extension ending in .tar.gz.
Conclusion
While GZip files may not be all that common in Windows they are commonly used in other operating systems like Linux and FreeBSD. This post is specially useful since many Linux installation only have support for GZip, including support for Zip and 7z is not even an option. If you have any questions feel free to leave a comment below.
Links
Homepage: http://www.7-zip.org/
compression, gzip — Aug 15, 2012
Windows Compact Command Create Zip Folder
A self extractor is an archive that contains a decryption engine built into it for easy extraction. This is useful for recipients who do not have an application that can extract archives or they do not have an application that supports strong encryption.
Self extractors have a file size limitation set by Windows (usually 4 GB).
Self extractors cannot be used on Mac OS
The right click method
This is an easy way to take a file and turn it into a self extractor in a few simple steps
Right click on the file you wish to work with, select PKZIP/SecureZIP and the create self extractor option
From the SFX (self extractor) Editor, edit any options you wish to include.
Enter a passphrase or select a certificate to encrypt or click skip for no encryption
Your self extractor will show up in the same location as your original file.
To launch the self extractor, double click on it, select the folder you wish to extract or go with the default and then click OK. The
Windows Compact Command Create Zip
From within an existing archive
If you've already created a ZIP file, you can still create a self extractor using these steps
Open the zip file you wish to create a self extractor from, Click on the save icon and in the Save type, select PKSFX
From the SFX (self extractor) Editor, edit any options you wish to include.
Enter a passphrase or select a certificate to encrypt or click skip for no encryption
Place all the pieces of the archive in the same folder and then double click on the .zip file to reassemble.