在一些.bat文件中,我有以下行
start "tomcat product" cmd /K mvn tomcat7:run %ENV_PARAMS% -P%MAVEN_PROFILE%我想将它改为使用console2而不是cmd,但没有运气。
有人能帮我吗?
发布于 2014-11-17 21:15:01
我知道有点晚了,但以防有人还需要:
要在console2中启动程序,请使用Console.exe -r program.exe
如果需要在console2的特定选项卡中运行它,请将-t参数与您的选项卡名一起使用。
-t <tab name>
Specifies a startup tab. Tab must be defined in Console settings.
-r <command>
Specifies a startup shell command. Example.bat:
"C:\Program Files (x86)\Console2\Console.exe" -r "/K notepad.exe" -t "cmd"运行console2,在名为cmd的选项卡中打开notepad.exe。
https://stackoverflow.com/questions/22010784
复制相似问题