Update download_resource.bat
This commit is contained in:
parent
a931f0a9a9
commit
742e54274f
@ -1,9 +1,9 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
REM 注意:请将此文件保存为"UTF-8 无 BOM"或 ANSI 编码,而不要使用带 BOM 的 UTF-8
|
||||||
chcp 65001 >nul
|
chcp 65001 >nul
|
||||||
setlocal EnableDelayedExpansion
|
setlocal EnableDelayedExpansion
|
||||||
|
|
||||||
REM 请确保本文件以 UTF-8 带 BOM 编码保存
|
REM 定义项目目录
|
||||||
|
|
||||||
set "PROJECT_DIR=%~dp0"
|
set "PROJECT_DIR=%~dp0"
|
||||||
cd "%PROJECT_DIR%"
|
cd "%PROJECT_DIR%"
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ echo 所有模型文件已下载并验证成功!
|
|||||||
pause
|
pause
|
||||||
|
|
||||||
:RemoveTrailingComma
|
:RemoveTrailingComma
|
||||||
REM 此子程序移除传入字符串末尾多余的"", "(逗号和空格)
|
REM 此子程序移除传入字符串末尾多余的", "(逗号和空格)
|
||||||
set "str=%~1"
|
set "str=%~1"
|
||||||
:RemoveTrailingLoop
|
:RemoveTrailingLoop
|
||||||
if "%str:~-2%"==", " (
|
if "%str:~-2%"==", " (
|
||||||
|
Loading…
Reference in New Issue
Block a user