Console2のコマンドライン.exeプログラムを実行する.batランチャーを作成しようとしています。.batファイルを開いてConsole2内の実行可能ファイルを開きます
@echo off
start "" Console.exe program.exe
が、それはコンソール2を開けないことすべて:
私の最高の推測では、それはのような何かを行く必要があることでしょう。
すべての.batファイルと実行ファイルはすべて同じフォルダにあります。
Console2のコマンドライン.exeプログラムを実行する.batランチャーを作成しようとしています。.batファイルを開いてConsole2内の実行可能ファイルを開きます
@echo off
start "" Console.exe program.exe
が、それはコンソール2を開けないことすべて:
私の最高の推測では、それはのような何かを行く必要があることでしょう。
すべての.batファイルと実行ファイルはすべて同じフォルダにあります。
[OK]を、私はCONSOLE.EXEのソースに見えましたコンパイルされたヘルプにドリルダウンします。
あなたは-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.
引用符を必ず付け加えてください:-r "command"。それ以降の魅力のように働いた。 –
私はこのプログラムのことを聞いたことがなかったが、そのsource code
else if (wstring(argv[i]) == wstring(L"-r"))
{
// startup cmd
++i;
if (i == argc) break;
startupCmds.push_back(argv[i]);
}
はあなたがしようとする場合がありますように、それが思われてしまう:
Console.exe -r program.exe
はあなたがCONSOLE.EXEのコマンドライン構文のためのドキュメントを見たことがありますか?そこに手がかりはありますか?編集:ドキュメントは動作していないようです...私は疑わしいソースを見なければなりません –