Batch Script : How to Zip & Unzip files in folder using Batch Script | How to open Zip File

preview_player
Показать описание
How to Zip and Unzip the files in folder using batch script | How to open file using Batch script

Welcome back to my channel!
In this video, I will show you how to create a batch script to zip and unzip files in the current directory or in a specific folder. It's a simple and straightforward process that anyone can do.

To begin, you'll need a zipping software installed on your machine. You can use any zipping software you have, such as WinZip or 7-Zip. Make sure the zipping software's executable file (exe) is placed in the current directory where you want to zip your files.

Next, we'll create a batch script to perform the zipping or unzipping. Open a new text document and write the batch script using the zipping software's executable and a magic command. For zipping files, use the command "A" followed by the desired zip file name. To specify a path, provide the folder path as a parameter in the batch script.

Save the text document with a .bat file extension, and you're ready to test the batch script. Double-click on the .bat file, and the zipping or unzipping process will begin. You'll see a pop-up window indicating the progress. Once it's done, you can check the resulting zip or extracted files in the current directory.

If you want to zip only specific files in a folder, you can specify the folder path in the batch script. This way, the batch script will only zip the files within that folder. Similarly, for unzipping, provide the path and file name of the zip file you want to extract.

I hope this tutorial helps you in creating batch scripts for zipping and unzipping files. If you have any questions or doubts, feel free to ask in the comments section below. Happy learning!
Batch script,
zip files, unzip files, zipping software, executable file, current directory, specific folder, WinZip, 7-Zip, magic command, path, zip file name, zipping process, unzipping process, batch script parameters, pop-up window, extracted files, folder path, tutorial.
#BatchScripting #ZipFiles #UnzipFiles #ZippingSoftware #Tutorial
#training
#howto
#batch
#education
#learning
#sqlforbeginners
#commandstutorial
#micosoft
#sqlcourse

=====To Get More useful video's, please follow below links ======

1.) To learn Learn SQL Server Concepts, visit below playlist

2.) To learn SQL Server Clauses and Keywords, please visit below playlist

3.) For SSIS Tutorial, follow below playlist

4.) For SSRS tutorial, follow below playlist

5.) Python Tutorials, follow below playlist

6.) Azure Data Factory Playlist

7.) Power BI Concepts, Visit below playlist

8.) MS Excel and Google Sheets, follow below playlist

=======My Favorite Study Materials you can check out =====

=========Share, Support and Subscribe =========
Subscribe to my YouTube channel :

Share and like the Facebook Page :

Thank you for Watching
By SQL
By SQL Training Session

Disclaimer : the above links may be amazon affiliate links, which means if you go through it,
I may get some commission but please bear in mind, it won't charge you a single penny
..so if you like the content, keep watching and support my channel.
Рекомендации по теме
Комментарии
Автор

Any chance to do 5 document merge in one zip file. Pls guide me..

omkarjethe
Автор

Is there a way to add to this batch file a pre-set password to the zip file?

philliphenderson
Автор

Hi, how to create a bat file to archive only .bak files in the current directory

dnyaneshwarkamble
Автор

could you quickly help me out with the WinRAR archiver file unzip? because I don't have a 7ZG file. even I tried your code with winRAR. But its not working

lalithkumar
Автор

Madam, I think you forgot to explain how to unzip the files in any directory of choice instead of the current directory.

MANOSHPROTIMMAJUMDER