# First TCC instantiation after reboot does not work.

#### fishman@panix.com

This is a continuing problem for several years. The first time I try to start TCC after a reboot, it fails with no disk drive shown and the only thing that I can do is kill the instantiation and retry which works fine. I only use TCC so I have no idea what happens with TC. I have complained repeatedly in the past and you always said that you could not duplicate it. What do I have to do to prove to you that this is a real problem???

Harvey

#### rconn

Since this problem is apparently unique to your system, the only way I could reproduce it would be if I had your system.

There are two things you can try to debug startup problems:

1) Start TCC with the /I option. This will prevent TCC from loading TCMD.INI, TCSTART, and any plugins. If TCC works with /I, then the problem is with your configuration. You can then try the various /Ix options to narrow it down.

2) If TCC still fails with /I, try starting TCC with the /... option. This will display a series of popup messageboxes that show what TCC is doing during initialization. If you document all of the messageboxes you see (and their contents) I can get a better understanding of how far TCC is getting.

#### fishman@panix.com

Thanks. It looks like it might be my 4START.CMD file (this is a carry-over from 4DOS)

@echo off

Harvey

#### Charles G

Why does a reboot take about 15 minutes?

#### TEA-Time

The batch file will wait for whatever f:\tclock\clock64.exe is to exit before continuing. If clock64.exe stays running and you close the "stuck" TCC and run it again, f:\tclock\clock64.exe may just fall though that time since it's already running and the batch file will be able to finish. Use "start f:\tclock\clock64.exe" (without the quotes) to run it without making the batch file wait.

prompt %@lower[%_disk]:$g would be the lower case version (%@lower) of the drive letter (%_disk), a colon (:), and then the > character ($g), and there is no space specified. So your prompt should look like "c:>" (without the quotes). If you're seeing otherwise, such as with the space you mentioned, perhaps it's being defined again somewhere else.

#### fishman@panix.com

I am not really sure, but a LOT of programs load at boot time. It is a custom built machine by Thinkmate with dual Zeons, 64 GB of RAM, and about 50 TB of disk. I mostly reboot only on Patch Tuesday when I have a new version of Windows requiring a reboot. In any case, the prompt was not the problem. I bit the bullet and rebooted but the problem still occurred. I guess that I have to find another problem.

Harvey

#### fishman@panix.com

tclock is an enhancement to the taskbar clock that runs forever. It is an old,old program that I have been using for circa 20 years. Do a Google search on it for more information.

Harvey

#### vefatica

As TEA-Time said, It could be waiting for clock64.exe to terminate. Try

Code:
start f:\tclock\clock64.exe

#### vefatica

From the help:

TCC always waits for applications that are run from transient shells (with a /C), or from batch files before continuing with subsequent commands in the batch file. To start an application from a transient shell or a batch file and continue without waiting for the application to finish, use the START command (without the /WAIT switch).

#### TEA-Time

tclock is an enhancement to the taskbar clock that runs forever. It is an old,old program that I have been using for circa 20 years. Do a Google search on it for more information.

Harvey
Aha, then I bet that's the culprit. I would take that line out of your 4START.CMD file completely and create a shortcut to it in Windows' Startup menu since it needs to be started with Windows and really has nothing to do with any sort of command prompt.

#### fishman@panix.com

O.K. Here is the content of the latest 4START.CMD file

@echo off
rem prompt %@lower[%_disk]:$g prompt$p$g path=%path%;c:\Program Files\GnuWin32\bin;c:\bin;c:\epsilon\bin;c:\c700\bin;c:\ztw;d:\jlblink\bltools;c:\bat;d:\nethack;c:\Borland\Bcc55; alias /r c:\4nt10\alias1.doc start f:\tclock\clock64.exe set cdpath=0 set pathext=.exe;.btm;.bat;.cmd;.vbs;.js;.ws;.rex;.rexx;.pl;.rb;.py;.tcl;.pdf set .pdf = "C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Acrobat.exe" rem set vcscfg=c:\bin\vcs.cfg rem set bixprn=0 rem set bldir=d:\jlblink and here is the content of alias1.doc e*psilon=c:\epsilon\bin\epsilonc.exe d*psilon=d:\eps1305w\bin\epsilonc.exe mv=move rm=del ztw=ztw64 +-=fishman@panix.com panix=telnet panix5.panix.com and th problem is still occurring #### vefatica Did you ever add "/is" to the shortcut's target? That will prevent 4start.cmd from running and possibly verify that it is the problem. You could also put some stuff in 4start.cmd to see if it hangs (and where) or finishes. @echo off echo 1 rem prompt %@lower[%_disk]:$g
echo 2
prompt $p$g
echo 3
echo 4
alias /r c:\4nt10\alias1.doc
echo 5
start f:\tclock\clock64.exe
echo 6
set cdpath=0
echo 7
set pathext=.exe;.btm;.bat;.cmd;.vbs;.js;.ws;.rex;.rexx;.pl;.rb;.py;.tcl;.pdf
echo 8
set .pdf = "C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Acrobat.exe"
echo 9

rem set vcscfg=c:\bin\vcs.cfg
rem set bixprn=0
echo 10
Code:

#### fishman@panix.com

O.K. tclock is now in the Windows Startup; the current 4START.CMD is

@echo off
rem prompt %@lower[%_disk]:$g prompt$p$g path=%path%;c:\Program Files\GnuWin32\bin;c:\bin;c:\epsilon\bin;c:\c700\bin;c:\ztw;d:\jlblink\bltools;c:\bat;d:\nethack;c:\Borland\Bcc55; alias /r c:\4nt10\alias1.doc rem start f:\tclock\clock64.exe set cdpath=0 set pathext=.exe;.btm;.bat;.cmd;.vbs;.js;.ws;.rex;.rexx;.pl;.rb;.py;.tcl;.pdf set .pdf = "C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Acrobat.exe" and here is tcmd.ini [4NT] AutoCancel=No AutoCDD=Yes AutoRun=Yes BatchAliases=Yes BatchEcho=Yes CMDExtensions=No CopyPrompt=No DelayedExpansion=No DelGlobalQuery=Yes DirJunctions=Yes DuplicateBugs=Yes EverythingSearch=No ExecWait=No HistLogOn=No LocalAliases=No LocalDirHistory=Yes LocalFunctions=No LocalHistory=Yes LogAll=No LogOn=No LogErrors=No Lua=Yes MouseWheel=No NoClobber=No PathExt=No Perl=No PowerShell=No Python=No RecycleBin=No Rexx=No Ruby=No SettingChange=No SHChangeNotify=No Tcl=No UnicodeOutput=Yes UnixPaths=No UpdateTitle=Yes UTF8=No WebHelp=No Win32SFNSearch=Yes Wow64FsRedirection=Yes ZoneId=0 ANSI=No CDDWinLeft=7 CDDWinTop=7 CDDWinWidth=1776 CDDWinHeight=440 PopupWinHeight=500 PopupWinTop=10 PopupWinLeft=40 PopupWinWidth=600 SyntaxColors=No WindowHeight=0 WindowState=Standard WindowWidth=0 WindowX=0 WindowY=0 Transparency=255 InactiveTransparency=255 AppendToDir=Yes CompleteAliases=Yes CompleteHiddenFiles=Yes CompleteHiddenDirs=Yes CompleteInternals=No CompletePaths=Yes CompletePercents=Yes CursorIns=100 CursorOver=15 DirHistory=6144 DirHistoryOnEntry=No EditMode=Overstrike FuzzyCD=3 HistMin=0 History=22528 HistCase=No HistCopy=No HistDups=Off HistMove=No HistWrap=Yes ServerCompletion=Local TreePath="c:\ProgramData\JP Software" AmPm=No BeepFreq=440 BeepLength=2 CommandSep=& DecimalChar=Auto DescriptionMax=512 NTFSDescriptions=No Descriptions=Yes EscapeChar=^ EvalMax=10 EvalMin=0 ExpandPseudovariables=No ParameterChar=$
RegularExpressions=Perl
TabStops=8
ThousandsChar=Auto
ProxyPort=80
FirewallType=None
FirewallPort=1080
PassiveFTP=Yes
FTPTimeout=180
HTTPTimeout=180
TFTPTimeout=180
MailPort=25
MailSSL=No
RLocalPort=0
SHLocalPort=0
SSHPort=22
SSLStartMode=0
SSLPort=0
[Keys]
AliasExpand=Ctrl-W
Argument0=Ctrl-0
Argument1=Ctrl-1
Argument2=Ctrl-2
Argument3=Ctrl-3
Argument4=Ctrl-4
Argument5=Ctrl-5
Argument6=Ctrl-6
Argument7=Ctrl-7
Argument8=Ctrl-8
Argument9=Ctrl-9
ArgLeft=Alt-Shift-Left
ArgRight=Alt-Shift-Right
Backspace=Backspace Ctrl-H
BeginLine=Home
CommandDialog=Alt-F2
CommandEscape=Alt-255
ConsoleHeightMax=Ctrl-Alt-Shift-Down
ConsoleHeightMin=Ctrl-Alt-Shift-Up
ConsoleWidthMax=Ctrl-Alt-Shift-Right
ConsoleWidthMin=Ctrl-Alt-Shift-Left
Copy=Ctrl-Y
Del=Del
DelArgLeft=Ctrl-Alt-L Ctrl-Alt-Left
DelArgRight=Ctrl-Alt-R Ctrl-Alt-Right
DelHistory=Ctrl-D
DelToBeginning=Ctrl-Home
DelToEnd=Ctrl-End
DelWordLeft=Ctrl-L Ctrl-Backspace
DelWordRight=Ctrl-R Ctrl-Del
DirectoryCompletion=Shift-F6
DirWinOpen=Ctrl-PgUp Ctrl-PgDn F6
EndHistory=Ctrl-E
EndLine=End
EraseLine=Esc
ExecLine=Enter Ctrl-M
FileBrowse=F5
FolderBrowse=Alt-F5
FontMax=Ctrl-Plus
FontMin=Ctrl-Minus
Help=F1
HelpWord=Ctrl-F1
HistWinOpen=PgUp PgDn
Ins=Ins
LastHistory=F3
Left=Left
LFNToggle=Ctrl-A
LineToEnd=Ctrl-Enter
MoveConsoleDown=Alt-Win-Down
MoveConsoleUp=Alt-Win-Up
MoveConsoleLeft=Alt-Win-Left
MoveConsoleRight=Alt-Win-Right
NextDirHistory=Shift-PgDn
NextFile=Tab F9
NextHistory=Down
OriginalFile=Alt-F9
ParentDirectory=Ctrl-Shift-Up
Paste=Ctrl-V Shift-Ins
PATHCompletion=Ctrl-F6
PopFile=F7 Ctrl-Tab
PopupWinDel=Ctrl-D
PopupWinEdit=Ctrl-Enter
PopupWinEditWin=Ctrl-E
PopupWinSelect=Enter
PrevArgument=Ctrl-B
PrevFile=F8 Shift-Tab
PrevDirHistory=Shift-PgUp
PrevHistory=Up
PrintHistory=Ctrl-P
Redo=Ctrl-Shift-Y
Regex=Ctrl-F7
RepeatArgument=Shift-F12
RepeatFile=F12
Right=Right
SaveHistory=Ctrl-K
SelectFromHome=Shift-Home
SelectLeft=Shift-Left
SelectRight=Shift-Right
SelectToEnd=Shift-End
SelectWordLeft=Ctrl-Shift-Left
SelectWordRight=Ctrl-Shift-Right
SingleStep=Ctrl-F5
Undo=Ctrl-Shift-Z
VariableExpand=Ctrl-X
VariableExpandWord=Ctrl-Shift-X
WordLeft=Ctrl-Left
WordRight=Ctrl-Right
ListBack=B Ctrl-PgUp
ListClipboard=Ctrl-B
ListContinue=C Ctrl-PgDn
ListDelete=Del
ListDown=Down
ListEdit=E
ListEnd=End
ListExit=Esc
ListFind=F
ListFindPrevious=Ctrl-N
ListFindRegex=R
ListFindRegexReverse=Ctrl-R
ListFindReverse=Ctrl-F
ListGoto=G
ListHex=X
ListHelp=F1
ListHexSpace=S
ListHighBit=H
ListHome=Home
ListInfo=I
ListLeft=Left
ListNext=N
ListNumber=L
ListOpen=O
ListPageDown=PgDn Space
ListPageLeft=Ctrl-Left
ListPageRight=Ctrl-Right
ListPageUp=PgUp
ListPrint=P
ListRefresh=F5
ListRight=Right
ListSave=Ins
ListTabSize=Tab
ListUnicode=U
ListUp=Up
ListWrap=W
CPopupWinDel=Ctrl-D
CPopupWinDown=Down
CPopupWinEdit=Ctrl-Enter
CPopupWinEditWin=Ctrl-E
CPopupWinEnd=End Ctrl-PgDn
CPopupWinExit=Esc
CPopupWinHelp=F1
CPopupWinHome=Home Ctrl-PgUp
CPopupWinLeft=Left
CPopupWinPgDn=PgDn
CPopupWinPgUp=PgUp
CPopupWinReset=BS
CPopupWinRight=Right
CPopupWinSelect=Enter
CPopupWinUp=Up

and still no joy. I lose that first instantiation.

Harvey

#### vefatica

After reading about CDPATH (in version 25's help), setting it to 0 doesn't make sense.

If you really have spaces around "=" when you set .PDF, it probably won't work correctly.

Are you really using version 10 of the product?

#### TEA-Time

I too am curious how you narrowed it down to "might be" 4START.CMD.

You could also put some stuff in 4start.cmd to see if it hangs (and where) or finishes.
Or you could REM out @echo off and see the actual commands.

Thread starter Title Forum Replies Date
Can you set an image file 'tag' with TCC/4NT? Support 2
PSHELL not working in TCC 26 Support 9
SCRIPT makes TCC disappear. Support 16
TCC suddenly crashing (not TCC's fault) Support 2
CMDDebug - TCC unknown command Support 2
News Take Command / TCC / CMDebug / TCC-RT 28.02.17 Support 0
TCC startup: /IP not honored after /K Support 1
TCC crashing when copying multiple files (now resolved) Support 6
COMSPEC constantly reset to TCC.EXE Support 6
News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
How to? starting TCC/TCMD v25 Support 2
TCC and TCMD in Powershell Support 6
News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Fixed Crash after copy dialog with big TCC.exception.log Support 5
News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
FTYPE in TCC, less quirky than in cmd.exe Support 3
Set path permanently from within TCC? Support 3
Runaway TCC.exception.log filling drive Support 5
News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
tcc.exception.log Support 3
News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
Help making a CMD and TCC compatible batch file Support 7
SCRIPT ... TCC disappears Support 2
News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
How to? tcc inifile (%_ininame) Support 3
How to? Black TCC Prompt Support 2
Differences between TCC and CMD with COPY /b Support 4
Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Can I turn off the minimize to tray mechanism in TCC? Support 5
Command execution slows down in TCC Prompt after a while Support 6
Upgrade TCMD 19 to TCC 26 Support 1
Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
How to? Is this doable in TCC? Support 2
News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
TCC tab detaching & restarting Support 3
Recent git output not shown on TCC Support 1
Kill all other instances of tcc from a btm batch file Support 2
Using TCC.exe through an SSH connection Support 3
TCC color issue in ConEmu Support 4
UTF-8 problem in TCC related to Python Support 7
Python support for 3.8.3 in TCC v26.x? Support 2
News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
TCC V26.01.3x Debugging has problems with Alias /R Support 1
News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
TCC waits for Office apps Support 4
.BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4