Custom ini-file is not read, by tcmd.exe cli

Apr 13, 2010
309
7
61
The Hague
I have a custom ini-file and two hyperlinks to start either tcc or tcmd. The tcc hyperlink still works, the tcmd hyperlink has stopped working but I am unsure when.

The command in the tcc link:
"C:\Program Files\JPSoft\TCMD22\tcc.exe" /@%USERPROFILE%\OneDrive\Batch\etc\Batch.ini

The command in the tcmd link:
"C:\Program Files\JPSoft\TCMD22\tcmd.exe" /@%USERPROFILE%\OneDrive\Batch\etc\Batch.ini

I have tried the syntax variation without the slash but that is simply removed from the hyperlink by Windows.

Please advice, I'm stumped.
 
Apr 2, 2011
1,442
10
54
North Carolina, USA
Hi DJ,

I seem to remember that the answr might be to double the "/" in front of the at sign....
 
Apr 13, 2010
309
7
61
The Hague
That definitely explains what I'm seeing.
Thank you. That's what I needed to get past this point.
If you don't mind: why is the [4NT] section not used to configure the primary shell, except when there are explicit defs in [Tabn] sections?
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
That definitely explains what I'm seeing.
Thank you. That's what I needed to get past this point.
If you don't mind: why is the [4NT] section not used to configure the primary shell, except when there are explicit defs in [Tabn] sections?

Because the tabs are created by Take Command, not TCC. Two separate apps in separate sessions.

And the primary shell isn't necessarily TCC - some people use CMD or PowerShell or bash.
 
Apr 13, 2010
309
7
61
The Hague
I believe what you're saying is:

The /@ for tcmd.exe only reads the [TakeCommand] section. The name of the inifile is not passed to tcc. After initialization tcmd proceeds to start a shell according to standard rules; the [Tabn] section(s) or a default shell if none are given. In the latter case this means that the shell will be initialized according to the standard inifile. If your non-standard tcmd should start non-standard shells than they should each be defined in the [Tabn] sections of the non-standard ini-file passed passed to tcmd, each explicitly referring to the special inifile for each tab.
 
Similar threads
Thread starter Title Forum Replies Date
D How to? Using a custom ini file with TCC from Take Command Support 7
robinsiebler Creating a custom prompt Support 9
C How to? Add date/time to custom tpipe based BTM Support 1
C custom string compare? Support 8
mfarah How to? So I want a custom directory for the plugins... Support 16
C How to? create a JPSoft BTM menu to run custom custom batch files Support 2
W Custom colors not saved in TCC 14 / Windows 7 x64 Support 4
tinjaw Looking for best practice for custom environment on tabs Support 0
G Documentation on TCMD.INI Support 9
RChrismon How to? Copy TCMD.INI to New Version Support 7
vefatica Documentation INI file location? Support 2
Alpengreis Fixed New INI directive "ANSIWin10" is invalid Support 2
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
D Fresh instance of TCMD does not use TCMD.INI Support 7
C Optimum Placement for TCMD.ini and others? Support 6
cgunhouse Documentation Locating the TCMD.INI File Support 9
D V19: toolbar /r "path\tctoolbar.ini" Support 1
B Fixed Error messages from TCMD.INI Support 2
C tcmd.ini not loading from program dir? Support 5
Detlef Fixed ParameterChar in TCMD.INI no longer working Support 35
Jay Sage Toolbar Update to INI File Not Working Support 10
Jay Sage How to Determine INI File Used by TCMD Support 6
Jay Sage Unable to Specify INI File Support 19
A How to? TCC/LE: How do you add "edit-mode=insert" to ini file? Support 9
cgunhouse TCMD.INI Issue Support 7
Fross TCC INI Support 2
Jay Sage Specified INI File Refuses to Run Support 3
T TCTOOLBAR /C & TCTOOLBAR /I should reload toolbar from TCMD.INI, right? Support 1
T TCC reading TCMD.INI causing "Invalid item name" warnings and pauses Support 2
D ini directives and @select example in Help Support 0
nickles Reload tcmd.ini from the command line Support 11
deleyd How to? Alias in TCMD.INI file? Support 2
J Extended directory search - cure by renaming tcmd.ini Support 10
A How to? How to enable UTF-8 output in tcmd.ini Support 9
C Env vars in tcmd.ini Support 12
C multi-INI file merging Support 1
S Location of tcmd.ini in x64 Support 4
M HistoryExclude .INI directive Support 2
williamleara Specifying path to TCMD.INI causes issues Support 8
R location of .ini file Support 17
C starting tcmd with alternate INI file Support 15
E Environment variable in tcmd.ini Support 14
R Toolbar - save to .INI Support 4
A How to Run the 4NT 8.02 .INI Key Version Support 3
Jay Sage Toolbar Problem with Reloading from INI Support 0
Jay Sage Issue With Reloading Toolbar From INI File Support 0
C Chaining INI for TCMD 8, 9, and 10 Support 1
S Wrong .INI file used by TCC Support 2
thedave Remove a section from an INI file Support 6
V .INI file directives Support 5

Similar threads