比如,
For /f %%i in ('echo HelloWorld!') do echo %%i
无法正确执行,报如下错误:
'echo HelloWorld!' is not recognized as an internal or external command, operable program or batch file.
但相同的代码在别的电脑上可以正确执行,结果如下
HelloWorld!
Press any key to continue . . .
真是诡异啊,请指教,谢谢。
[ Last edited by rebuca on 2010-3-8 at 16:33 ]
For /f %%i in ('echo HelloWorld!') do echo %%i
无法正确执行,报如下错误:
'echo HelloWorld!' is not recognized as an internal or external command, operable program or batch file.
但相同的代码在别的电脑上可以正确执行,结果如下
HelloWorld!
Press any key to continue . . .
真是诡异啊,请指教,谢谢。
[ Last edited by rebuca on 2010-3-8 at 16:33 ]
