echo off
set "projectPath=%~1\Translations\"
echo projectPath %projectPath%
cd %projectPath%
set "tmp=f"
for /r %%g in (*.ts) do (
echo %%g
set %tmp%="www"
echo %tmp%
)
当运行tmp是'f'而我不知道为什么
请有人解释发生了什么事吗?
1 个答案:
答案 0 :(得分:0)
echo projectPath %projectPath%
cd %projectPath%
setlocal enableDelayedExpansion
set "tmp=f"
for /r %%g in (*.ts) do (
echo %%g
set %tmp%="www"
echo !tmp!
)
endlocal