1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TCEXIT not called since TCC v9

Discussion in 'Support' started by Christian Albaret, Oct 3, 2008.

  1. Christian Albaret

    Joined:
    Jul 1, 2008
    Messages:
    154
    Likes Received:
    1
    TCEXIT not called since TCC v9

    I am using a small TCEXIT.BTM script -- it checks that I have left no USB memory stick connected and no diskette in the drive, and possibly prints a message.

    Since TCC v9 (I tested several versions), it does not work any more on my home machine. It still works perfectly on my machine in the office. And in works on both machines at home and in the office in version TCMD and 4NT v8 and before.

    Both machines have Windows XP SP2 installed.

    I had a look with SysInternals' ProcessMonitor. On my home machine, one does not see TCC trying to open a TCEXT.* file before the threads and the process terminate (whereas one sees many accesses to a TCSTART.* file when starting, it tries several extensions in turn: .com, .exe, .btm, .bat, .cmd (I don't remember the exact order)).
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,794
    Likes Received:
    29
    A few thoughts:

    Make sure you're executing the TCC you think you're executing. Start that one and do OPTION ... go to the "startup" tab and make sure TCSTART / TCEXIT Path names a directory containing your start/exit files. Putsomething obvious in the exit file that will tell you it's being executed; for example,

    echo EXITING NOW
    pause
     
  3. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    JP Software Forums" <neil@jpsoft.com>; "vefatica wrote:
    |
     
  4. Christian Albaret

    Joined:
    Jul 1, 2008
    Messages:
    154
    Likes Received:
    1
    I checked a few things: I have only one version of TCC v9 installed (TCC 9.02.152) (in order to test with other versions of TCC v9, I had to uninstall and reinstall the other versions), TCSTART.btm and TCEXIT.btm are in the same directory as TCC.exe, in options "Path to TCSTART / TCEXIT" is empty; TCSTART.btm is executed (I would notice immediately if all the aliases etc. were missing); if the problem were that TCC does not find TCEXIT, SysInternals' ProcessMonitor would show this fact (on my machine at the office, I clearly see "QueryDirectory"/"[...]\JPsoft9\TCEXIT.*", "QueryDirectory"/"[...]\JPsoft9\TCEXIT.com", "QueryDirectory"/"[...]\JPsoft9\TCEXIT.exe", "QueryDirectory"/"[...]\JPsoft9\TCEXIT.btm", then "CreateFile"(Windows function that open the file)/"[...]\JPsoft9\TCEXIT.BTM"; on my home machine I don't see such lines).
     
  5. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,280
    Likes Received:
    38
    Open your .INI file in a text editor and search for a line "ExitFile=No". If you find this directive, remove it.
     
  6. Christian Albaret

    Joined:
    Jul 1, 2008
    Messages:
    154
    Likes Received:
    1
    Thanks, this was the problem.

    I don't know how I managed to have this directive in the file. Then I had to remove the directive from the TCMD.INI in %APPDATA (and delete the old 4NT.INI and TCMD32.INI files in the directory where TCC is stored).
     

Share This Page