How to Determine INI File Used by TCMD

Jun 2, 2008
376
2
Newton, MA
In another thread, it was pointed out to me that the variable _ininame reports the path of the INI file used by the instance of TCC in which it is used. Is there a way to query the path of the INI file used by TCMD? I know that I can invoke the Options tab in TCMD and see the path in the top border of the options window, but I'm wondering if there is some way to get the information programmatically. (And I do realize that there could be multiple copies of TCMD running. Could there be an option to display it in the top window border of TCMD itself (instead of the default directory of the currently selected tab). Or perhaps a variable that could be accessed by a parameter expression within the TCMD toolbar.

This is obviously not a really important issue. Now that I have finally gotten the issue of INI files under control (by putting TCMD.INI in the program directory where tcmd.exe and tcc.exe reside), I don't have to check so often.

-- Jay
 
May 20, 2008
11,400
99
Syracuse, NY, USA
It'd require hacking another class. Do you actually think it would be useful in Help/About? (Versus Option / Configure TCMD?)
It doesn't really matter. Opening the options dialog just to look at its title bar seems a little clumsy. Maybe someday TakeCommandIPC will be able to get it.
 
This is obviously not a really important issue. Now that I have finally gotten the issue of INI files under control (by putting TCMD.INI in the program directory where tcmd.exe and tcc.exe reside), I don't have to check so often.

Wow. Thanks.

My work machine was just upgraded to Win7 from XP, and I was experiencing a somewhat mind-bending problem: TCMD keystroke alias behaviour was different than in TCC. I map <Ctrl-D> to be the exit key to close a window. Prior to the upgrade, it work in TCC and TCMD both. After the upgrade, it worked in TCC, but not TCMD. Yet "everything else was the same".

A check of %_ININAME% showed that TCC was loading "D:\AppData\Take Command\tcmd.ini", as expected, but TCMD was D:\Users\myuserid\AppData\Local\JPSoft\tcmd.ini. I think that oh so many years ago when my XP machine was set up, I made that "JPSoft" directory a junction to D:\AppData\Take Command, so they both used the same ini file. It's been so long since I did it, I forgot all about it. In any event, all is good now. Thanks for the (indirect) help in solving that.
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly How to? Determine size of file via download link Support 13
Joe Caverly Determine if program started from command prompt Support 2
C Determine process svchost is running Support 13
MickeyF how to determine which program will execute a file Support 10
M How to? How to determine if this is the first time that... Support 5
C How to determine if system is 32 or 64 bit? Support 5
M How to? Determine a whether vars beginning with certain characters exist... Support 5
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
D Custom ini-file is not read, by tcmd.exe cli Support 6
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 Unable to Specify INI File Support 19
A How to? TCC/LE: How do you add "edit-mode=insert" to ini file? Support 9
D How to? Using a custom ini file with TCC from Take Command Support 7
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