【发布时间】:2011-11-21 13:08:05
【问题描述】:
在ant任务Exec中,为什么为executable="cmd"提供<arg value="/c"/>?
其他可能的可执行文件是什么?
谁能解释一下?
【问题讨论】:
在ant任务Exec中,为什么为executable="cmd"提供<arg value="/c"/>?
其他可能的可执行文件是什么?
谁能解释一下?
【问题讨论】:
/c 不是可执行文件:它是可执行文件的参数(在本例中为“cmd.exe”)
来自文档(在 shell 中调用“cmd /?”):
/C Carries out the command specified by string and then terminates
【讨论】: