Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: looking for command line interface for unzipping files

17 Oct 2014   #1
aliyesami

win7-64 bit
 
 
looking for command line interface for unzipping files

i want to unzip files in a windows batch file , how can I in windows 2003 server OS ?


My System SpecsSystem Spec
.
17 Oct 2014   #2
Brink

64-bit Windows 10 Pro
 
 

Hello Aliyesami,

You may be able to use the "Expand" command to do so.

Expand Command-Line Options
My System SpecsSystem Spec
17 Oct 2014   #3
Ztruker

Windows 10 Pro X64
 
 

Install 7-Zip then use it in the batch file.

Quote:
>7z

7-Zip [64] 9.30 alpha Copyright (c) 1999-2012 Igor Pavlov 2012-10-26

Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]

<Commands>
a: Add files to archive
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names)
h: Calculate hash values for files
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-scs{UTF-8 | WIN | DOS}: set charset for list files
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout
-ssc[-]: set sensitive case mode
-ssw: compress shared files
-t{Type}: Set type of archive
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-v{Size}[b|k|m|g]: Create volumes
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
My System SpecsSystem Spec
.

17 Oct 2014   #4
aliyesami

win7-64 bit
 
 

i cant use utilities that are freeware so 7z is not an option .
cant get the expand syntax to work . whats the syntax to unzip a file in another directory ?

thanks
My System SpecsSystem Spec
17 Oct 2014   #5
Ztruker

Windows 10 Pro X64
 
 

Okay, here is a way using native Windows: Can you zip a file from the command prompt using ONLY Windows&#39; built-in capability to zip files? - Super User

Why can't you use 7-Zip or freeware. 7-zip explicitly grants permission to anyone, private or commercial to use it.
My System SpecsSystem Spec
Reply

 looking for command line interface for unzipping files




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Command Line - Help
Hi Guy's and Girls, Just first off I've never been too good with CMD and only an Apprentice in my company I work for. Now something I've wanted to do for awhile was to make the following but I don't necassirealy I know how to do this in one batch file: I would need a Batch file that is...
General Discussion
Using vssadmin command line to store Restore files on the DATA drive
In David Karp's book Windows 7 Annoyances he shows how to move your System Restore files to your DATA Volume or Drive - Command prompt in Administrator mode - My OS (W7 Home Premium x64) is on C: and my data is on drive D: - so the Command is as follows - vssadmin add shadowstorage /for=C:...
Performance & Maintenance
Command Line Prompt - How To Export List of Files to Text File
Hi guys, I have a folder with 995 files in it and I'd like to give someone a text file with a list of all these files in it. Is there a way that I can get the command line to send the names of these files to a text file? I tried navigating to the directory and using the DIR command and,...
General Discussion
What command line I use to add a shortcut to the list of recent files?
I'd like to add files to list of recent files opened using line command to make an bat file. Can you relp me? I'd like to add in the list below.
General Discussion
Sata hard drive power line interface
my used hard drive is the IDE power cord interface ( 4-pin). Now the hard drive had bad, and I want to buy a sata power interface. My motherboard has sata interface, but I don't know how many pin the sata hard drive interface to connect the power supply interface. Could I use my old power supply?
Hardware & Devices
Command Line
Is there a cmd.exe /switch for “run as administrator” ? Thanks-
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 02:12.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App