【发布时间】:2012-11-28 16:26:40
【问题描述】:
我有这个单行 CMD 文件 TEST.CMD:
for %%f in (%1 %2 %3 %4 %5 %6 %7 %8) DO ECHO %%f
如果我运行这个:
TEST this is a test
它在单独的行上正确地回显每个参数,即,
this
is
a
test
但是,如果参数包含星号,则会跳过它。例如,
TEST this is a* test
结果:
this
is
test
如何将带星号的参数视为普通标记?
谢谢。
【问题讨论】:
标签: for-loop batch-file