cmd 批量删除文件、文件夹

@echo off
set Directory=%~dp0
echo 目录%Directory%
echo 删除 mmbilling.3.1.9.jar 对应资源...
echo -----------------------------------------


set dir=%Directory%assets\mmiap
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set file=%Directory%assets\mmbclasses.dgc
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%


set file=%Directory%assets\mmbclasses.jar
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%




set dir=%Directory%smali\com\chinaMobile
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set dir=%Directory%smali\com\secneo
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%




set dir=%Directory%smali\mm
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%




set file=%Directory%unknown\CopyrightDeclaration.xml
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%


set file=%Directory%unknown\mmiap.xml
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%


set file=%Directory%unknown\VERSION
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%


echo 删除 mmbilling.3.1.9.jar 完成!




echo 删除 Multimode_UniPay_base.jar 对应资源...
echo -----------------------------------------


set dir=%Directory%assets\arm64-v8a
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set dir=%Directory%assets\armeabi
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set dir=%Directory%assets\armeabi-v7a
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set dir=%Directory%assets\unicom_account
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set dir=%Directory%assets\unicom_base
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set dir=%Directory%assets\x86
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set file=%Directory%assets\classez.jar
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%


set file=%Directory%assets\ind.dat
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%


set file=%Directory%assets\unicom_resource.dat
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%


set file=%Directory%assets\UnicomConsume.uwc
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%


set file=%Directory%assets\unipay_profile.dat
if exist %file%  echo 删除文件,%file%
if exist %file% del /a/f/q %file%






set dir=%Directory%smali\com\unicom
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%




set dir=%Directory%smali\com\unipay
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


set dir=%Directory%smali\com\wow
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


echo 删除 Multimode_UniPay_base.jar 完成!






echo 删除 Multimode_UniPay_payinfo.jar 对应资源...
echo -----------------------------------------


set dir=%Directory%assets\UnicomConsume
if exist %dir%  echo 删除目录,%dir%
if exist %dir% rd /s /q %dir%


echo 删除 Multimode_UniPay_payinfo.jar 完成!


pause

你可能感兴趣的:(CMD命令)