- @echo off
- if "%~1"=="" goto end
- 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
- if "%~2"=="" goto end
- if /i "%~x2" neq ".rar" if /i "%~x2" neq ".zip" if /i "%~x2" neq ".7z" goto end
- if "%~3" neq "" goto end
- cd /d "%~dp1"
- if /i "%~x2" neq ".rar" if /i "%~x2" neq ".zip" if /i "%~x2" neq ".7z" (
- copy /b "%~nx2"+"%~nx1" "视图种%~n2%~x1"
- ) else (copy /b "%~nx1"+"%~nx2" "视图种%~n2%~x1")
- exit
复制代码
|