Sign in with
Sign up | Sign in
Your question

Unzip command in batch file

Last response: in Windows XP
Share
October 22, 2010 8:37:17 AM

Hi,
I have wrote a batch file that extract a zip archive in to c:\windows\system32\drivers. Here is the content of unzip.bat:

unzip patch1.3.zip -d C:\Windows\System32\drivers

but when I double click the unzip.bat file, a command window opens and infinitely write these:

D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
.......
.......

What is the problem?
October 22, 2010 12:17:43 PM

thanks for that. PKZIP/PKUNZIP are more suitable
Related resources
July 3, 2012 12:32:44 PM

mahmood said:
Hi,
I have wrote a batch file that extract a zip archive in to c:\windows\system32\drivers. Here is the content of unzip.bat:

unzip patch1.3.zip -d C:\Windows\System32\drivers

but when I double click the unzip.bat file, a command window opens and infinitely write these:

D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
D:\mahmood\Desktop\sample>unzip patch1.3.zip -d C:\Windows\System32\drivers
.......
.......

What is the problem?


Hi mahmood insatll unzip.exe
please send mail to this if any issues with unzip command Nikil1229@gmail.com


thanks,
Nikhil@photon

July 3, 2012 12:36:07 PM

if the zip file is in c drive give like this unzip c:\filename.zip -d C:\filenamewhich u want

Thanks
Nikhil@phresco
!