TCSTART and TCEXIT not executed

May 20, 2008
11,400
99
Syracuse, NY, USA
TCMD 13 in installed in d:\tc13 (always has been). TCC.EXE, TCMD.INI, TCSTART.BTM, and TCEXIT.BTM all reside in d:\tc13. If I start TCC with a 2-click in Explorer (or otherwise) I see

Code:
d:\tc13> echo %_ininame
D:\TC13\TCMD.INI
 
d:\tc13> option tcstartpath
tcstartpath=d:\tc13
 
d:\tc13> grep -i tcstartpath tcmd.ini
TCStartPath=d:\tc13
 
[both above confirmed by the OPTION dialog]
 
d:\tc13> echo %_tcstart
ECHO is OFF
 
d:\tc13> echo %_tcexit
ECHO is OFF
 
d:\tc13> dir /f /k /m tce*.btm;tcs*.btm
D:\TC13\tcexit.btm
D:\TC13\tcstart.btm
 
d:\tc13>

And TCSTART (which contains a message and a pause) was not executed. And when I close TCC, TCEXIT (which contains a beep) is not executed.

I uploaded my INI file.
 

Attachments

  • TCMD.INI
    3.8 KB · Views: 95

rconn

Administrator
Staff member
May 14, 2008
12,345
150
TCMD 13 in installed in d:\tc13 (always has been). TCC.EXE, TCMD.INI, TCSTART.BTM, and TCEXIT.BTM all reside in d:\tc13.

Don't put TCMD.INI in your installation directory. It goes in %LOCALAPPDATA (in Win7, that's \users\yourname\appdata\local\jpsoft\tcmd.ini). (This goes back to the introduction of Vista and Microsoft blocking access to the root directories and "\Program Files".)
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Don't put TCMD.INI in your installation directory. It goes in %LOCALAPPDATA (in Win7, that's \users\yourname\appdata\local\jpsoft\tcmd.ini). (This goes back to the introduction of Vista and Microsoft blocking access to the root directories and "\Program Files".)

There has never been a TCMD.INI there. TCC finds it just fine if it's in the install dir (which for me is not in "Program Files).

But I found the problem. The failure of TCSTART and TCEXIT to run (to be found, apparently) goes away if I either

1. uncheck the PathExt option

or

2. put .BTM in the PATHEXT variable.

That's a strange dependence. One would never expect it having read about TCSTART and PathExt. There should be no path searches involved since TCStartPath is explicitly specified. Apparently, %PATHEXT **defines** what TCC considers executable, even in situations where %PATH is not involved. If that's the case, then the PathExt help should make that clear, and the TCSTART help, in mentioning that any "executable" extension can be used for TCSTART and TCEXIT should contain a reference to the PATHEXT variable.
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
The PATHEXT variable is (1) optionally set by Windows, not by TCC, and (2) disabled by default in TCC. So you had to both turn on support for PATHEXT and then fail to configure PATHEXT to support BTM files.

PATHEXT has nothing to do with path searches, only with what Windows (not just TCC) considers an executable file.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
The PATHEXT variable is (1) optionally set by Windows, not by TCC, and (2) disabled by default in TCC. So you had to both turn on support for PATHEXT and then fail to configure PATHEXT to support BTM files.

PATHEXT has nothing to do with path searches, only with what Windows (not just TCC) considers an executable file.

Well, the help for PathExt sure gives the impression that it is used, together with PATH, in the "standard path search".

I haven't paid any attention to PATHEXT in years. If it's going to remain possible to screw up the TCSTART/TCEXIT mechanism with it, I think that should be documented.
 
Similar threads
Thread starter Title Forum Replies Date
MickeyF equivalent to TCSTART.btm for TCMD? Support 4
vefatica @EXECSTR ... TCSTART ... something's wrong! Support 7
Charles S. Roaten Problems with TCSTART.BTM Support 1
D TCSTART issue after reinstallation Support 14
D check for network tcstart.btm and load if newer Support 3
Craig Fitzgerald Problems using tcstart.btm Support 3
dcantor How to? Batch file to be executed by TCSTART Support 4
thorntonpg TCC_RT_21\tcc.exe runs tcstart Support 4
JohnQSmith ALIAS /R in TCSTART.BTM Support 9
A 18.00.21 tries to cancel TCSTART.BTM Support 3
vefatica Why isn't TCSTART.BTM run? Support 8
p.f.moore How to? User specific TCSTART (etc) files Support 15
MickeyF Why does my tcstart.btm sometimes terminate tcc.exe? Support 4
M Mysteriously to me TCStart.btm is not being executed... Support 2
S Fixed Stand-alone TCC 14.02.43 hangs before TCSTART Support 3
Peter Murschall Is IDE forbidden in TCSTART.BTM ? Support 4
fpefpe tcstart and plugin Support 4
Ville Command line variable in tcstart.btm? Support 7
G PROMT command in TCSTART.BTM Support 3
Phileosophos Enabling PathExt disables tcstart.btm processing Support 9
gentzel Directory stack empty when running TCEXIT? Support 9
B IF command problem in tcexit.btm Support 9
vefatica TCEXIT not executed if I X the console Support 4
J WAD Output redirection in tcexit looses data Support 31
vefatica _CMDLINE in TCEXIT (only sometimes) Support 16
fpefpe Documentation tcexit Support 1
T How to? sort history in tcexit.btm Support 22
D Internal variable _tctabs within TCExit Support 9
wbiebel Can this be possible: TCEXIT is not executed? Support 21
T TCEXIT sometimes not called in TCMD Support 0
C TCEXIT not called since TCC v9 Support 5
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
B How can a user know the last 'true command' executed Support 1
vefatica WAD PRE_EXEC executed before PROMPT2 Support 5
M Flickering of title when command is executed Support 5
M Ctrl-End doesn't work. DelToEnd is not executed Support 13
M "History" command not giving me what I want when executed by @Exec... functions... Support 6

Similar threads