winrar删除命令的使用
winrar d filename.rar assets\.* -r -ibck -inul
:命令 d-从压缩文件中删除文件 :开关 -r连同子文件夹 -ibck后台运行winrar -inul禁止错误信息
使用java中的jar打包成jar
jar cvf example.jar classes.dex
1 删除脚本所在文件夹(包括子文件夹)下的rar文件中特定的文件和文件夹
FOR /r %%v IN (*.rar) DO (
winrar d %%v *.sdf -r -ibck -inul
winrar d %%v *.ncb -r -ibck -inul
winrar d %%v *.aps -r -ibck -inul
winrar d %%v *Debug\\*.* -r -ibck -inul
winrar d %%v *Release\\*.* -r -ibck -inul
winrar d %%v *ipch\\*.* -r -ibck -inul
winrar d %%v *Debug* -ibck -inul
winrar d %%v *Release* -ibck -inul
winrar d %%v *ipch* -ibck -inul
)
2 删除某个rar中特定的文件和文件夹
:用法 delete.bat 23.apk
set filename=%1%
echo 处理文件:%filename%
:命令 d-从压缩文件中删除文件
:开关 -r连同子文件夹 -ibck后台运行winrar -inul禁止错误信息
winrar d %filename% *.arsc -r -ibck -inul
winrar d %filename% *.xml -r -ibck -inul
:删除文件夹和所有文件(包括子文件夹)
winrar d %filename% *assets\\*.* -r -ibck -inul
winrar d %filename% *com\\*.* -r -ibck -inul
winrar d %filename% *lib\\*.* -r -ibck -inul
winrar d %filename% *META-INF\\*.* -r -ibck -inul
winrar d %filename% *res\\*.* -r -ibck -inul
:删除文件夹
:winrar d %filename% *assets* -ibck -inul
:winrar d %filename% *com* -ibck -inul
:winrar d %filename% *lib* -ibck -inul
:winrar d %filename% *META-INF* -ibck -inul
:winrar d %filename% *res* -ibck -inul
)