tyuw668 当前离线
列兵
went 当前在线
少校
@echo off & cd /d "%~dp0" if not "%~1"=="" ( rename "%~1" "1.txt" & exit ) set /p a= rename %a% 1.txt || pause复制代码
TOP
yyz219 当前离线
中尉
ren %* 1.txt ::检测“1.txt”文件:有向下运行,无向右运行 if not exist "1.txt" goto A exit :A cls set /p a= ren %a% 1.txt 复制代码