Unzip command in batch file

mahmood

Distinguished
Jul 19, 2007
76
0
18,630
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?
 

nikil1229

Honorable
Jul 3, 2012
2
0
10,510


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


thanks,
Nikhil@photon

 

nikil1229

Honorable
Jul 3, 2012
2
0
10,510
if the zip file is in c drive give like this unzip c:\filename.zip -d C:\filenamewhich u want

Thanks
Nikhil@phresco