del /f /s /q *.meta
pause
setlocal enabledelayedexpansion
set count=100
for /f "delims=" %%i in ('dir /b *.jpg,*.png,*.bmp,*.jpeg,*.gif') do call:Rename "%%~i"
pause
exit
:Rename
set /a count+=1
if /i "%~1"=="!count:~1!%~x1" goto :eof
if exist "!count:~1!%~x1" goto Rename
echo 改名:%1 !count:~1!
ren "%~1" "!count:~1!%~x1"
goto :eof
文件命名 .bat结尾
- 3,LayaAI obj convertTo Json
REM Author JUN_Z
REM Time 2020/8/26/14:16:57
@echo off
setlocal enabledelayedexpansion
for %%i in ( *.obj ) do (
set "FILE_NAME=%%~ni"
echo "fileName": !FILE_NAME!
call:runConvert %%~i,!FILE_NAME!
)
pause
:runConvert
REM echo %1
REM echo %2%JSON%
start python convert_obj_three.py -i %1 -o %2.json
goto :eof