Batch file .bat文件以在Console2中打开可执行文件
我的目标是创建一个.bat启动器,它将在中执行命令行.exe程序。Batch file .bat文件以在Console2中打开可执行文件,batch-file,console2,Batch File,Console2,我的目标是创建一个.bat启动器,它将在中执行命令行.exe程序。 我最好的猜测应该是这样的: @echo off start "" Console.exe program.exe 但所有这些都会打开控制台2。 请注意,所有的.bat和可执行文件都在同一个文件夹中。我从未听说过这个程序,但它是 使您看起来可能想尝试: Console.exe -r program.exe 好的,我在源代码中查找Console.exe并深入到编译的帮助中 你需要a-r 所以:Console.exe-r prog
我最好的猜测应该是这样的:
@echo off
start "" Console.exe program.exe
但所有这些都会打开控制台2。请注意,所有的.bat和可执行文件都在同一个文件夹中。我从未听说过这个程序,但它是 使您看起来可能想尝试:
Console.exe -r program.exe
好的,我在源代码中查找Console.exe并深入到编译的帮助中 你需要a-r 所以:
Console.exe-r program.exe
Command line parameters
Console supports these command line parameters:
-c <configuration file>
Specifies a configuration file.
-w <main window title>
Sets main window title. This option will override all other main window title settings (e.g. 'use tab titles' setting)
-t <tab name>
Specifies a startup tab. Tab must be defined in Console settings.
-d <directory>
Specifies a startup directory. If you want to parametrize startup dirs, you need to specify startup directory parameter as "%1"\ (backslash is outside of the double quotes)
-r <command>
Specifies a startup shell command.
-ts <sleep time in ms>
Specifies sleep time between starting next tab if multiple -t's are specified.
命令行参数
Console支持以下命令行参数:
-c
指定配置文件。
-w
设置主窗口标题。此选项将覆盖所有其他主窗口标题设置(例如“使用选项卡标题”设置)
-t
指定启动选项卡。必须在控制台设置中定义选项卡。
-d
指定启动目录。如果要参数化启动目录,需要将启动目录参数指定为“%1”\(反斜杠在双引号之外)
-r
指定启动shell命令。
-ts
如果指定了多个-t,则指定启动下一个选项卡之间的睡眠时间。
您在文档中查找console.exe的命令行语法了吗?有什么线索吗?编辑:文档似乎不起作用。。。您必须查看我怀疑的源代码,确保添加引号:-r“command”。从那以后,他工作得很有魅力。
Command line parameters
Console supports these command line parameters:
-c <configuration file>
Specifies a configuration file.
-w <main window title>
Sets main window title. This option will override all other main window title settings (e.g. 'use tab titles' setting)
-t <tab name>
Specifies a startup tab. Tab must be defined in Console settings.
-d <directory>
Specifies a startup directory. If you want to parametrize startup dirs, you need to specify startup directory parameter as "%1"\ (backslash is outside of the double quotes)
-r <command>
Specifies a startup shell command.
-ts <sleep time in ms>
Specifies sleep time between starting next tab if multiple -t's are specified.