%%A was unexpected at this time

前端 未结 3 412
时光说笑
时光说笑 2020-12-08 18:22

I want to zip a folder containing files. So inorder to do that i need to loop through the entire file list and execute 7za command. (7zip command line version)



        
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 19:19

    Try this in a batch file.

    FOR "G:\Files Sample\zip\txt\" %%G IN (*.txt) DO  7za -tzip "%%G.zip" "%%G"
    

    Add /R as option to search for the files in all subfolder.

    A good explanation of cmd- methods you could find at ss64

提交回复
热议问题