2014-02-25 125 views
0

在一些.bat文件我有以下行蝙蝠脚本cmd以console2

start "tomcat product" cmd /K mvn tomcat7:run %ENV_PARAMS% -P%MAVEN_PROFILE% 

我想改变它,而不是使用CMD但没有运气console2。

任何人都可以帮助我吗?

回答

0

我知道晚了一点,但如果有人仍然需要:

要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:

这叫做 cmd的选项卡中打开的notepad.exe
"C:\Program Files (x86)\Console2\Console.exe" -r "/K notepad.exe" -t "cmd" 

运行console2。