The Take Command command line includes the program name with drive and path, followed by any options. For example:
"c:\program files\jpsoft\tcmd17tcmd1\tcmd.exe" @c:\tcmd\tcmd.ini
There are several Take Command startup options. The complete syntax for the Take Command startup command line is (all on one line):
d:\path\tcmd.exe [[/]@d:\path\inifile] [//directive=value...] [/D d:\path] [/N /X] [/C command] [/T [d:\path\]program]
(Do not include the square brackets shown in the command line above. They are there to indicate that the items within the brackets are optional.)
The command line must start with the full Take Command path and executable name (TCMD.EXE):
The additional items below may be included on the command line:
This option sets the path and name of the .INI file. You don't need this option if:
|1)||your .INI file is named TCMD.INI, and|
|2)||it is in one of the following directories:|
|2.1)||the same directory as Take Command|
2.2) the "%programdata%\JP Software\Take Command 24" directory
|2.3)||the %localappdata% directory|
This option is most useful if you want to start the program with a specific and unique .INI file.
To start Take Command without any .INI file, you can create an empty file and specify it as your .INI file.
To get around a Windows limitation that causes the displayed command line of a shortcut to be truncated when a parameter begins with @, you can use the alternative syntax
Take Command will skip the leading forward slash.
This option tells Take Command to treat the text appearing between the // and the next space or tab as an initialization directive. The directive should be in the same format as a line in TCMD.INI, but may not contain spaces, tabs, or comments. This option may be repeated. It is a convenient way to place a few simple directives on the startup line without having to modify or create a new .INI file.
|/C||Run the specified command in a new TCC tab window. If there is already a Take Command session running, /C creates a new tab in the existing Take Command rather than starting a new session. /C must be the last Take Command option on the command line (otherwise Take Command can't tell if additional options belong to Take Command or the command to run in the TCC tab).|
|/D||Start File Explorer in the specified directory.|
|/N||Don't load TCMD.INI (useful when trying to isolate configuration problems).|
|/NT||Don't load the default startup tabs (usually only useful when combined with /C or /T).|
|/T||You can specify the program to start in the first tab with the /T option:|
|d:\path\tcmd.exe /t d:\path\program|
If there is already a Take Command session running, /T creates a new tab in the existing Take Command rather than starting a new session.
/T must be the last option on the command line (otherwise Take Command can't tell if additional options belong to Take Command or the program to start in the tab).
If you have Startup Tabs defined, Take Command will display them following the tab created by /T.
|/X||Retrieve and store the Take Command window layout in a file (TCMD.XML) instead of the Windows Registry. This is for systems where the administrator has locked registry write access (even to HKEY_CURRENT_USER). The TCMD.XML file must be in the same directory as TCMD.INI.|