Need Windows .bat file tech support. I am having trouble running Win 7 bat files which loop through tokens and variables. The script below works on my wifes PC, and should on all PCs, but does not on mine.
** 本文件迟交。 我正在Mack Ware与我的Ma一道使用Windows 7。
档案根基是:
这份短篇的文字,以及任何像它一样带有脚印的文字都给我留下错误(我把下文的文字抄到下号档案中):
setLocal ENABLEDELAYEDEXPANSION
set SCHEMA_one= first
set SCHEMA_two= second
set SCHEMA_three= third
@ECHO ON
FOR /F "tokens=2* delims=_=" %%A IN ( set SCHEMA_ ) DO (
echo "looping through " %%A
)
endLocal
我有以下错误:
C:>FOR /F "tokens=2* delims=_=" %A IN ( set SCHEMA_ ) DO (echo "looping through " %A )
set SCHEMA_ is not recognized as an internal or external command, operable program or batch file.
想法?
很多人预先表示感谢。 我被 st了几个小时。