In the PowerShell window, type in the following command:
Make sure to change to the actual path of the file you want to zip and with the location where you want to save the file.
There are three types of compression level.
- Fastest − Uses the fastest compression to reduce the processing time. It can lead to larger file size.
- Optimal − Normal compression level. Processing time depends on the size of the file. This is the default compression level if you don’t use the compression parameter.
- NoCompression − Doesn’t compress the source files. This means the size of the actual folders and files are the same after the zipped only there is no compression ratio.
Compress files to create an archive file
*.vsd is wildcard here for multiple files with the same extension.
compress Root directory and below sub-directories and files
compress all the files and sub-directories below the root “SourceLocation” folder
compress only the files in the “SourceLocation” folder.
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.
I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.