6

I run this command in cmd:

console2 -t MyTab -r ipconfig

Should this command auto run ipconfig after console opens MyTab? It doesn't for me. It doesn't even without -t option.

WHITECOLOR
  • 395
  • 2
  • 7
  • 19

1 Answers1

5

The filename of the shell and its parameters need to be specified explicitly, like CMD.exe /K (or %COMSPEC% /K), in either

Console Settings -> Console -> Shell
or
Console Settings -> Tabs -> MyTab -> Shell .

user29318
  • 66
  • 3
  • What if I want to run different commands on for one tab? – WHITECOLOR Jun 15 '13 at 12:22
  • Just made the suggestion a bit clearer, my bad. To be on the safe side, `place the commands` which you would like Console2 to run `in double quotes`, like `console2 -t MyTab -r "ipconfig & dir C:\Windows | more"` – user29318 Jun 15 '13 at 14:07
  • Unfortunately you suggestion does not work, have you tried it? – WHITECOLOR Jun 15 '13 at 14:53
  • Yap, it's triple-checked before being posted. It may sound daft, but I just wonder if there is `a tab called MyTab in your Console Settings -> Tabs`. If not, Console2 won't launch properly. – user29318 Jun 15 '13 at 18:34
  • Yes there is a MyTab, there is nothing in Shell field and in Startup dir there is a dir that opens up when I run: console2 -t MyTab -r "ipconfig" but ipconfig command does not run. – WHITECOLOR Jun 15 '13 at 22:06
  • The shell field in the tab settings has to contain "%COMSPEC% /K", this is what user29318 was trying to say. This tripped me up too. – naasking Feb 04 '14 at 21:27