Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how to unzip files in batch mode

Posted on 2011-09-12
3
Medium Priority
?
458 Views
Last Modified: 2012-06-21
I want to unzip the content of a zip file in batch mode using visual studio. I have many zip files which content I need to save to c:\

Thank you for any help experts...

Jorge Manzo
0
Comment
Question by:jmanzo10
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
CSorg earned 1000 total points
ID: 36526428
use
 compact /u 

Open in new window

0
 
LVL 58

Expert Comment

by:Bill Prew
ID: 36526494
Not sure what you really mean when you say "using visual studio", given that you placed this in the MS-DOS zone. If you want to do this from a command line or in a batch file, then you will need a zip utility program like 7-ZIP to do this.

Will all the files from the ZIP files go into a single folder?

Where are the ZIP files located, all in a single folder?

Does the ZIP contain subfolders?

~bp
0
 
LVL 8

Assisted Solution

by:Amitabh Singh
Amitabh Singh earned 1000 total points
ID: 36529773
Hello you can use 7zip with CLI option

Example :
1st :Download 7-Zip Command Line Version : http://www.7-zip.org/download.html

2nd: Extract 7zip and copy 7za.exe and past in your windows %systemroot%\system32 folder

3rd : if you want to use bat file you can create a bat file like this
 
cd c:
cd\
7za.exe e c:\your_zip_folder_location\*.zip

Open in new window


hear is a link how to run bat or cmd file from visual studio
http://www.rickglos.com/post/How-to-run-cmd-files-from-Visual-Studio.aspx
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . If you have responsibility for software in production, I bet you’d like to know more about it. I don’t mean that you’d like an extra peek into the bowels of the sourc…
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

596 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question