@echo off&setlocal enabledelayedexpansionset Num=1001for %%a in (*.*) do ( ren "%%~a" "!Num:~1!——%%~a" set /a Num+=1)exit上面代码bat文件本身也被重命名了,怎么改使得bat文件不被重命名
太给力啦,能不能在最后添加一句——刷新当前文件夹