@echo off
:InputGameName
set /p gameName=请输入最大长度为8的英文游戏名:
if not defined gameName goto InputGameName
echo 您输入的是:%gameName%
set long=0
set str=%gameName%
:CountLong
set /a long+=1
set str=%str:~0,-1%
if defined str goto :CountLong
echo 字符串长度:%long%
if %long% GTR 8 goto :InputGameName
set rep=%gameName%
setlocal enabledelayedexpansion
for /r %%i in (*.meta) do (
set b=%%i
for /f "eol=* tokens=*" %%j in (!b!) do (
set a=%%j
set "uu=!a:~1,4!"
echo !uu!>>ttt.txt
if "!uu!"=="uuid" (
del temp.txt
set "cut=!a:~9,%long%!"
echo !cut!>>temp.txt
for /f %%k in (temp.txt) do (
call set "a=!a:%%k=%rep%!"
)
)
echo !a!>>$
)
move $ !b!
)
pause
cocoscreator热更新文章中替换生成.meta文件的uuid一个bat脚本
bat替换cocoscrator等编辑器生成的.meta文件的uuid
最新推荐文章于 2025-05-27 09:50:58 发布