Open an executable within Console2 via batch

  • Oweoqi

    Oweoqi - 2012-06-14

    I've tried the following to no avail:

    @echo off

    START "" Console.exe -r jones.exe

  • Kirill

    Kirill - 2012-06-14

    What you specify after -r gets added to the shell's command line that you specified in the tab's configuration. In other words, if you have an empty Shell field in Edit > Settings > Tabs, then your command will try to execute the following

    %comspec% jones.exe

    If that Shell field has "sh.exe -login -i" (without quotes) then your command will try to execute the following:

    sh.exe -login -i jones.exe

    In either case, it's probably not what you want. I would try

    @console.exe -r "/k jones.exe"

    if jones.exe is actually a kind of shell, you can try /c. Quotes are required because the additional info must be one argument.

  • Oweoqi

    Oweoqi - 2012-06-15

    Thanks. Issue resolved


Log in to post a comment.