I have this single line CMD file 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
如何使带星号的参数被视为普通标记?
谢谢。