Windows command line compression/extraction tool?

一世执手 提交于 2020-01-24 20:40:35

问题


I need to write a batch file to unzip files to their current folder from a given root folder.

Folder 0
    |----- Folder 1
    |          |----- File1.zip
    |          |----- File2.zip
    |          |----- File3.zip
    |
    |----- Folder 2
    |          |----- File4.zip
    |       
    |----- Folder 3
               |----- File5.zip
               |----- FileN.zip

So, I wish that my batch file is launched like so:

ocd.bat /d="Folder 0"

Then, make it iterate from within the batch file through all of the subfolders to unzip the files exactly where the .zip files are located.

So here's my question:

Does the Windows (from XP at least) have a command line for its embedded zip tool? Otherwise, shall I stick to another third-party util?


回答1:


AFAIK, there is not unzip tool shipped as part of Windows XP, but there is gnu unzip which will do the job nicely for you.



来源:https://stackoverflow.com/questions/2967795/windows-command-line-compression-extraction-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!