2012-06-14 17 views
14

Console2 içinde bir komut satırı .exe programını çalıştıracak bir .bat başlatıcısı oluşturmayı hedefliyorum..bat dosyası Console2 içinde yürütülebilir dosyayı açmak için

@echo off 
start "" Console.exe program.exe 

ancak tüm bu Console2 açmıyor:
En iyi tahminim şöyle gitmeli olurdu.
Lütfen tüm .bat ve yürütülebilir dosyaların hepsinin aynı klasörde olduğunu unutmayın.

Ben bu programın duymamış
+1

Eğer console.exe komut satırı sözdizimi için dokümanlar baktınız mı? Orada herhangi bir ipucu var mı? Düzenleyin: Dokümanlar işe yaramıyor ... Kaynağa bakmanız gerekecek –

cevap

18

Tamam ben Console.exe için kaynak baktı ve derlenmiş yardımın içine delinmiş.

Bir -r

Yani gerekir: 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. 
+0

'dan şüpheleniyorum: -r "komut". Bundan sonra bir cazibe gibi çalıştı. –

10

ama onun source code

else if (wstring(argv[i]) == wstring(L"-r")) 
      { 
        // startup cmd 
        ++i; 
        if (i == argc) break; 
        startupCmds.push_back(argv[i]); 
      } 

denemek isteyebilirsiniz gibi görünüyor yapar:

Console.exe -r program.exe 
İlgili konular