ant - 在 ant 任务 Exec 中,为什么 <arg value ="/c"/> 为可执行文件 ="cmd"提供?其他可能的可执行文件是什么?

标签 ant cmd exec task

在ant任务Exec中为什么是<arg value="/c"/>为 executable="cmd"?
提供 其他可能的可执行文件是什么?
谁能解释一下?

最佳答案

/c 不是可执行文件:它是可执行文件的参数(在本例中为“cmd.exe”)

来自文档(在 shell 中调用“cmd/?”):

/C      Carries out the command specified by string and then terminates

关于ant - 在 ant 任务 Exec 中,为什么 <arg value ="/c"/> 为可执行文件 ="cmd"提供?其他可能的可执行文件是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8212308/

相关文章:

java - 将 Portlet 部署自动化到 WebSphere Portal Server 6.1

ant - schemagen ant 任务忽略 package-info.java

java - 如何将 build.xml 添加到 Eclipse 中的现有 GWT 项目?

windows - DISM:为什么我收到错误:2,无法访问图像

linux - 我如何调试 exec* = -1 ENOENT?

scripting - 从其他 Ant 脚本执行 Ant 脚本?

windows - Powershell脚本在ISE上运行良好,但在cli上存在问题

windows - 如何隐藏以std::process::Command开头的进程的控制台窗口? [复制]

java - 存储可通过 php 调用的 java 可执行文件

c++ - 如何在运行时将参数放入函数中?