How to Make Zip File in Windows Command Line
April 12, 2020
Sometimes we wanted to compress or zip our desired file or folder in windows. We do not need to install any third party software for that. Windows already has a feature for this purpose. Today I will show you some methods of windows commands.
We can make any file to zip file through command shell in Microsoft Windows as follows:
D:\FreeTechTrainer>powershell "Compress-Archive minhaj.txt minhaj.zip"
or
D:\FreeTechTrainer>powershell Compress-Archive minhaj.txt minhaj.zip
We can also make any folder to zip file through command shell in Microsoft Windows as follows:
D:\FreeTechTrainer>powershell "Compress-Archive minhaj minhaj.zip"
or
D:\FreeTechTrainer>powershell Compress-Archive minhaj minhaj.zip