ConsoleZ 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 ConsoleZ 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.
-p <base priority>
Specifies shell base priority.
Idle: Specifies that the threads of this process run only when the
system is idle.
The idle priority class is inherited by child processes.
BelowNormal: Specifies that the process has priority above Idle
but below Normal.
The below normal priority class is inherited by child processes.
Normal: Specifies that the process has no special scheduling needs.
AboveNormal: Specifies that the process has priority above Normal
but below High.
High: Specifies that the process performs time-critical tasks
that must be executed immediately, regardless of the load on the operating
system. The threads of the process preempt the threads of normal or idle
priority class processes. Use extreme care when specifying High for the
process's priority class, because a high priority class application can use
nearly all available processor time.
Realtime: Specifies that the process has the highest possible priority.
The threads of a process with RealTime priority preempt the threads of all
other processes, including operating system processes performing important tasks.
Thus, a RealTime priority process that executes for more than a very brief
interval can cause disk caches not to flush or cause the mouse to be unresponsive.
-ts <sleep time in ms>
Specifies sleep time between starting next tab if multiple -t's are specified.
-reuse
Reuses another instance, if any exists, instead of starting a new one.
Note: -t option is not used to set tab's title. It specifies one of the names of the tabs defined in ConsoleZ settings.
Note: If you specify multiple -t options, you can specify
multiple -d and -r options as well. In that case, each -t, -d and -r
option will be grouped together. If there is no corresponding -d
option for a -t option, the initial directory from that tab's settings
will be used.
For example:
Console.exe -t bash -d C:\WINDOWS -r "ls -al" -t cmd -d D:\ -t ncftp
Will start 'bash' tab in C:\WINDOWS, running "ls -al"
command in it and 'cmd' tab in D:\. 'ncftp' tab will be started in the
initial directory specified in its settings.
Note: Some shells need an additional switch in the startup
command string. E.g. when using cmd.exe, you must put /k at the
beginning of your command string:
Console.exe -t cmd -r "/k dir /b"
Note: -ts option can be useful if you want to start multiple instances of a tab, and tab's shell needs write access to some files during initialization Using -ts option, you can specify time to sleep between starting the next tab, giving each shell enough time to initialize itself.