ITPub博客

首页 > Linux操作系统 > Linux操作系统 > pack+unpack 批处理

pack+unpack 批处理

原创 Linux操作系统 作者:mhaoy 时间:2010-12-25 20:26:52 0 删除 编辑

@echo off
setlocal enabledelayedexpansion
set suffix=pack.gz
for %%i in (*.jar) do (
  set Name=%%i
  set tName=!oName:~0,-3!
  set nName=!tName!!suffix!
  ::@echo "pack "!oName!" to "!nName!
  echo 处理文件:!oName!
  start /wait pack200 !nName! !oName!
  del /F !oName!
  set /a fNums+=1
)
echo ====================================================
echo Congratulations!文件处理完成,共压缩了!fNums!个文件!
echo ====================================================
endlocal

pause

@echo off
setlocal enabledelayedexpansion
set suffix=jar
for %%i in (*.pack) do (
  set Name=%%i
  set tName=!oName:~0,-7!
  set nName=!tName!!suffix!
  ::@echo "unpack "!oName!" to "!nName!
  echo 处理文件:!oName!
  start /wait unpack200 !oName! !nName!
  del /F !oName!
  set /a fNums+=1
)
echo ====================================================
echo Congratulations!文件处理完成,共解压缩!fNums!个文件!
echo ====================================================
endlocal
pause

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15149581/viewspace-682608/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 网络批处理
请登录后发表评论 登录
全部评论

注册时间:2009-05-13

  • 博文量
    54
  • 访问量
    96220