[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
  1. @echo off
  2. if "%~1"=="" goto end
  3. if /i "%~x1" neq ".jpg" if /i "%~x1" neq ".png" if /i "%~x1" neq ".jpeg" if /i "%~x1" neq ".mp4" if /i "%~x1" neq ".mkv" if /i "%~x1" neq ".mp4v" goto end
  4. if "%~2"=="" goto end
  5. if /i "%~x2" neq ".rar" if /i "%~x2" neq ".zip" if /i "%~x2" neq ".7z" goto end
  6. if "%~3" neq "" goto end
  7. cd /d "%~dp1"
  8. if /i "%~x2" neq ".rar" if /i "%~x2" neq ".zip" if /i "%~x2" neq ".7z" (
  9. copy /b "%~nx2"+"%~nx1" "视图种%~n2%~x1"
  10. ) else (copy /b "%~nx1"+"%~nx2" "视图种%~n2%~x1")
  11. exit
复制代码

TOP

返回列表