How to extract ZIP files with WinRAR command line?

后端 未结 4 1528
一个人的身影
一个人的身影 2021-02-07 09:30

While trying to extract zip files I get the error:

c:\\path\\name.zip is not RAR archive
No files to extract

My code is:

4条回答
  •  佛祖请我去吃肉
    2021-02-07 10:08

    for /f "tokens=*" %G in ('dir /on /b "D:\BACKUP_DATI\EXCEL\OPER*.ZIP"') do "C:\Program Files\7-Zip\7z.exe" x  "..\%G" –aoa
    

    References to further reading:

    • 7-Zip command line examples
    • FOR /D - Loop through directory

提交回复
热议问题