众所周知Ant 的
<exec executable="cmd" dir="../Temp">
<arg value="/c" />
<arg value="tasklist | findstr "_uninstall*" > isFinished.txt" />
</exec>
一直不明白<arg value="/c" />
中的/c的作用。
在dos窗口运行命令cmd /?
,得到结果
众所周知Ant 的
<exec executable="cmd" dir="../Temp">
<arg value="/c" />
<arg value="tasklist | findstr "_uninstall*" > isFinished.txt" />
</exec>
一直不明白<arg value="/c" />
中的/c的作用。
在dos窗口运行命令cmd /?
,得到结果