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
Solved

how to unzip files in batch mode

Posted on 2011-09-12
3
413 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
3 Comments
 
LVL 7

Accepted Solution

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

Open in new window

0
 
LVL 53

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 250 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
This video shows how use content aware, what it’s used for, and when to use it over other tools.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

839 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