How to unzip files automatically using DOS commands?

Hi

Is there any way i can unzip files using DOS commands. i am able to zip the files using DOS commands.
Is there any way that i can do the same?

THx
Naren

knaren_1975Asked:
Who is Participating?
 
Christopher McKayConnect With a Mentor Microsoft Network AdministratorCommented:
If you download and install one of the above utilities, you can script it in a batch file.

Example, if you download and extract fbzip to c:\fbzip, you could put this in your batch file:

c:\fbzip\fbzip.exe -e -p "<path>\filename.zip" "destinationpath"

Hope this helps!

:o)

Bartender_1

0
 
Christopher McKayMicrosoft Network AdministratorCommented:
you could use pkunzip in DOS:

http://membrane.com/synapse/library/pkunzip.html

Hope this helps!

:o)

Bartender_1
0
 
Christopher McKayMicrosoft Network AdministratorCommented:
You could also try:
7zip: http://www.7-zip.org/download.html
Free byte zip: http://www.freebyte.com/fbzip/
or infozip: http://infozip.sourceforge.net/

Hope this helps!

:o)

Bartender_1
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
knaren_1975Author Commented:
Is there any code to unzip the file that i can  keep in Batch files and call from MS-sqlserver Procedure

THX
Naren

0
 
ghostdog74Commented:
if you are on Win2k/WinXP, there's a command called compact you can use.
compact /U uncompress compressed files.
0
 
BarcaCommented:
what is the file extension?

.zip? .exe? .rar?
0
 
knaren_1975Author Commented:
thx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.