Command Line FOR /F Fails

后端 未结 2 899
猫巷女王i
猫巷女王i 2021-01-23 02:49

I have a DOS build script which works on one Windows Server 2008 R2 but not another. To see the symptoms on the broken machine entering either of the following at the command li

2条回答
  •  情话喂你
    2021-01-23 03:43

    In a batch file you have to use double-percents i.e. %%X. At the command line single percents are fine.

    As to why it works on one machine, not sure, perhaps its somehow being run via 16 bit DOS on the machine which works? Or it was a different test that appears to work without the variable substituion working.

提交回复
热议问题