|
test1.bat:
@echo off
for %%a in (""a b "c"") do @echo %%a
pause
for %%a in (""aa bb" "cc"") do @echo %%a
pause
运行结果:
test2.bat:
@echo off
for %%a in (""a b" "c"") do @echo %%a
pause
for /f %%a in (""a b" "c"") do @echo %%a
pause
for /f "delims=*" %%a in (""a b" "c"") do @echo %%a
pause
运行结果:
以上结果真是难于理解~请对cmd预处理机制了解深的朋友分析一下。
[ 本帖最后由 FLOPPY 于 2011-9-16 15:39 编辑 ] |
|