Yet another strange something re something called "@TCONVERT"

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
A quick bit of background: I've got a 32-bit program that I wrote years ago (in C++) that I use all of the time, and for a number of reasons I have no interest in converting it to 64-bit (as this machine is). However, part of it's functionality can only be achieved by running 64-bit code in 64-bit TCC, and trying to create a C++ program that does something in 64-bit mode only when needed and everything else in 32-bit mode is beyond my present capabilities. So therefore I have a 32-bit version of TCC readily available. So here's the problem: I just went into the options dialog in the 32-bit TCC to verify that some things were set the way I wanted them to be set, and my (dim) recollection is that everything was set the way I wanted it to be and I didn't even change anything. However, here's what happens in new 32-bit TCC sessions:
Code:
  Sun  Jan 27, 2013  12:31:47a
 
Chill v1.1.0 loaded.
Fortune v1.1.3 loaded.
ISO8601 plugin v1.3.6 loaded.
PopInfo v1.0.3 loaded; hotkey is Control-Q.
SafeChars plugin v1.6.4 loaded.
Say plugin v1.0.7 loaded.
Snapshot v1.0.1 loaded.
 
TCC  14.03.53  Windows 7 [Version 6.1.7601]
Copyright 2012 JP Software Inc.  All Rights Reserved
Registered to Daniel Mathews
 
[Z:\]Echo Just a command to illustrate the problem...
Just a command to illustrate the problem...
 
TCC: (Sys) Incorrect function.
"%@TCONVERT[0.023]"
The problem is that "Incorrect function "%@TCONVERT"".

And searching every .btm file in my path yields nothing (I'm showing the whole listing unmodified so that there is no doubt about what I say here):
Code:
[Z:\]For /T";" %D in (%Path) Do (Find /I "@TCONVERT" "%D\*.btm")
File not found - "C:\Windows\system32\*.btm"
File not found - "C:\Windows\*.btm"
 
---------- E:\DOS\ADDTOPATH.BTM
 
---------- E:\DOS\ADDTRAILINGQUOTES.BTM
 
---------- E:\DOS\ALARM.BTM
 
---------- E:\DOS\ALPHABETICPHONENUMBERTODIGITS.BTM
 
---------- E:\DOS\ARGUMENTTRAVERSALPROTOTYPE.BTM
 
---------- E:\DOS\AUTORENAME+1.BTM
 
---------- E:\DOS\AUTORENAME.BTM
 
---------- E:\DOS\BATCHFILENAME.BTM
 
---------- E:\DOS\BATCOMPALL.BTM
 
---------- E:\DOS\BUILDCOMPLETESONGLISTSORTEDBYDATEANDTIME.BTM
 
---------- E:\DOS\CLASSIFY .BTM FILES.BTM
 
---------- E:\DOS\CLASSIFYDIRECTORIES.BTM
 
---------- E:\DOS\CLEANC++DIRECTORY.BTM
 
---------- E:\DOS\CLEANPIDS.BTM
 
---------- E:\DOS\CLEANUPDCALC.BTM
 
---------- E:\DOS\CLEANUPWELLSFARGOTRANSACTIONLIST.BTM
 
---------- E:\DOS\COCK.BTM
 
---------- E:\DOS\COMBINETEXTFILES.BTM
 
---------- E:\DOS\COMP7ZZIP.BTM
 
---------- E:\DOS\CONTENTS.BTM
 
---------- E:\DOS\DELDUPFILES.BTM
 
---------- E:\DOS\DELETEUNNEEDEDVISUALCPPFILES.BTM
 
---------- E:\DOS\DEMO+1.BTM
 
---------- E:\DOS\DIRPLUS.BTM
 
---------- E:\DOS\DISPLAYZIPFILECONTENTS.BTM
 
---------- E:\DOS\DOCREBOOT.BTM
 
---------- E:\DOS\DOCRESTART.BTM
 
---------- E:\DOS\DONOTHING.BTM
 
---------- E:\DOS\DOSDISK.BTM
 
---------- E:\DOS\DRIVETYPE.BTM
 
---------- E:\DOS\ECALC.BTM
 
---------- E:\DOS\ECHOARGS.BTM
 
---------- E:\DOS\EFH.BTM
 
---------- E:\DOS\ENDTIMER.BTM
 
---------- E:\DOS\EXPLOREFROMHERE.BTM
 
---------- E:\DOS\EXTRACTDUPLICATES.BTM
 
---------- E:\DOS\FACTORIAL.BTM
 
---------- E:\DOS\FILESSORTEDBYEXTENSION.BTM
 
---------- E:\DOS\FILTERDUPLICATES.BTM
 
---------- E:\DOS\FINDEXECUTABLEBYNAMEFRAGMENT.BTM
 
---------- E:\DOS\FIXDATE.BTM
 
---------- E:\DOS\FIXDIR.BTM
 
---------- E:\DOS\FIXSONGNAMES.BTM
 
---------- E:\DOS\FORMATZNTFS.BTM
 
---------- E:\DOS\FREEPLUS.BTM
 
---------- E:\DOS\FUNCTIONS.BTM
 
---------- E:\DOS\GETALLOCATEDSIZE.BTM
 
---------- E:\DOS\GETAMPM.BTM
 
---------- E:\DOS\GETASOFDATE.BTM
 
---------- E:\DOS\GETCLUSTERSIZE.BTM
 
---------- E:\DOS\GETSUBSTDDRIVETARGET.BTM
 
---------- E:\DOS\GETUNIQUEFILENAME.BTM
 
---------- E:\DOS\GETVERSIONSTRING.BTM
 
---------- E:\DOS\HDIR.BTM
 
---------- E:\DOS\HISTORYOFF.BTM
 
---------- E:\DOS\HISTORYRESET.BTM
 
---------- E:\DOS\HXD.BTM
 
---------- E:\DOS\IDENTIFYCASES1.BTM
 
---------- E:\DOS\IEPATH.BTM
 
---------- E:\DOS\KEEPALIVE.BTM
 
---------- E:\DOS\LISTDRIVES.BTM
 
---------- E:\DOS\LISTLINKS.BTM
 
---------- E:\DOS\LISTSTREAMS.BTM
 
---------- E:\DOS\LOADPATH.BTM
 
---------- E:\DOS\LONG-FORM ALIAS FOR  DT~TM.BTM
 
---------- E:\DOS\MAKEBACKUPFILES.BTM
 
---------- E:\DOS\MAKEEMPTYFILE.BTM
 
---------- E:\DOS\MAKENOWDIR.BTM
 
---------- E:\DOS\MAKESAFE.BTM
 
---------- E:\DOS\MAKESONGLINKS.BTM
 
---------- E:\DOS\MAKEVERSIONS.BTM
 
---------- E:\DOS\MEF.BTM
 
---------- E:\DOS\MERGE1.BTM
 
---------- E:\DOS\MIDDIRECTORY.BTM
 
---------- E:\DOS\MOVEFILES.BTM
 
---------- E:\DOS\MUSIC.BTM
 
---------- E:\DOS\NOTRACEHISTORY.BTM
 
---------- E:\DOS\PARSECHASEATMWITHDRAWALS.BTM
 
---------- E:\DOS\PARSECHASENONATMTRANSACTIONS.BTM
 
---------- E:\DOS\PARSEMASTERCARDTRANSACTIONS.BTM
 
---------- E:\DOS\PARSESPECIALARGUMENTS.BTM
 
---------- E:\DOS\PI.BTM
 
---------- E:\DOS\PID.BTM
 
---------- E:\DOS\PROCESSDRM'DSONGS.BTM
 
---------- E:\DOS\PROCESSMUSICFILES.BTM
 
---------- E:\DOS\PROJECTCLEANUP.BTM
 
---------- E:\DOS\QGETMAXLINELENGTH.BTM
 
---------- E:\DOS\RDCRRNTDIR.BTM
 
---------- E:\DOS\REMOVEPARAMETER.BTM
 
---------- E:\DOS\RESETTOUCHPAD.BTM
 
---------- E:\DOS\RESTOREDATE.BTM
 
---------- E:\DOS\SAVEDATE.BTM
 
---------- E:\DOS\SAVEHISTORY.BTM
 
---------- E:\DOS\SAVEPATH.BTM
 
---------- E:\DOS\SCIENTIFICNOTATION.BTM
 
---------- E:\DOS\SEARCHCPPFILES.BTM
 
---------- E:\DOS\SETHISTORY.BTM
 
---------- E:\DOS\SHOW7ZCOMPRESSIONSTATISTICS.BTM
 
---------- E:\DOS\SHOWCPPPROGRAMHISTORY.BTM
 
---------- E:\DOS\SHOWDRIVESPACE.BTM
 
---------- E:\DOS\SHOWTIMERSTATS.BTM
 
---------- E:\DOS\SPLITMESSAGEII.BTM
 
---------- E:\DOS\STARTTIMER.BTM
 
---------- E:\DOS\STARTX.BTM
 
---------- E:\DOS\STDCOPY.BTM
 
---------- E:\DOS\STDDD.BTM
 
---------- E:\DOS\STDPDIR.BTM
 
---------- E:\DOS\STDSAFEMOVE.BTM
 
---------- E:\DOS\SUBDIRS.BTM
 
---------- E:\DOS\SUPERFIND-1.BTM
 
---------- E:\DOS\SYNCHRONIZESONGFILES+1.BTM
 
---------- E:\DOS\TAKECONTROL.BTM
 
---------- E:\DOS\TCMDE.BTM
 
---------- E:\DOS\TCSTART.BTM
 
---------- E:\DOS\TESTESCAPE.BTM
 
---------- E:\DOS\TESTISFILE.BTM
 
---------- E:\DOS\TESTUNQUOTES.BTM
 
---------- E:\DOS\TIMERPARAMETERERRORTESTS.BTM
 
---------- E:\DOS\TIMESTAMPFILE.BTM
 
---------- E:\DOS\TRACEHISTORY.BTM
 
---------- E:\DOS\TRUETRUENAME.BTM
 
---------- E:\DOS\UNFIXSONGNAMES.BTM
 
---------- E:\DOS\UNNAMEIT.BTM
 
---------- E:\DOS\UNSUBST.BTM
 
---------- E:\DOS\UNZIPVBSAMPLES.BTM
 
---------- E:\DOS\UPGRADETCMDTCC.BTM
 
---------- E:\DOS\UZVBS.BTM
 
---------- E:\DOS\VC08.BTM
 
---------- E:\DOS\VERIFYACCESS.BTM
 
---------- E:\DOS\VERIFYDATEVALIDITY.BTM
 
---------- E:\DOS\VERIFYEXISTENCE.BTM
 
---------- E:\DOS\VERIFYFILENAMEANDPATH.BTM
 
---------- E:\DOS\VERIFYNEWTCMDTCCINSTALATION.BTM
 
---------- E:\DOS\XDIR.BTM
 
---------- E:\DOS\XXXSTARTX.BTM
 
---------- E:\DOS\YEARDIFFERENCE.BTM
File not found - "C:\Windows\System32\Wbem\*.btm"
File not found - "C:\Windows\System32\WindowsPowerShell\v1.0\\*.btm"
File not found - "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\\*.btm
"
File not found - "C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\\*.btm"
File not found - "E:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolk
it\\*.btm"
 
TCC: (Sys) Incorrect function.
"%@TCONVERT[0.898]"
[Z:\]
If you glance over the previous you will see no .btm file in my path refers to a function "@TCONVERT"

Not only that, but I've never even heard of a function with that name before now and no function with that name is listed in the TCC help file.

What the heck did I do now?
 
#2
Are you saying that merely executing that command causes that error message? Is "Echo" an alias?
Code:
[Z:\]Echo Just a command to illustrate the problem...
Just a command to illustrate the problem...
 
TCC: (Sys) Incorrect function.
"%@TCONVERT[0.023]"
 
#3
Vince, to be clearer here it's not just "that" command, it's executing any/every/all commands (batch files or programs or internal commands, everything) without exception. Said (with a bit of humor that hopefully will work here) it's like that error message is my command prompt!
 
#5
As far as I know, the "default" prompt (As far as I remember, which ain't too far, I've never changed it). And "Echo %Prompt" produces "ECHO is OFF", which means, from what I understand, that I really haven't set it to anything so it should be the default.
 
#6
AFAIK there is a default prompt, stored in the env. var. PROMPT, set by TCC when it starts. If displaying it with the command you showed above results in the message ECHO is OFF somehow the variable got deleted! Or possibly it includes the @TCONVERT function from Vince's 4utils.dll which is not loaded at that time... Take this message with a grain of salt, though.
 
#7
Well, guys, the problem has been found and worked around (but not yet completely fixed, that's another story in a moment), and, Steve, your response caused me to (almost ; > ) > remember it. You see, per JohnQSmith's excellent suggestion not too long ago, I implemented a command timer on the POST_EXEC alias, and Mr. Smith's code uses @TCONVERT, which is defined in the 64-bit 4Utils plugin but (currently) not in the version of the 32-bit 4Utils plug in that I have. Since at this particular moment I don't even know what @TConvert does (and I no longer remember where to find the 4Utils documentation), I simply nulled out the POST_EXEC alias and that has fixed the problem. I would like to restore the command timer functionality, however.
 
#8
And Steve, I'll just say my prompt is exactly what I want it to be ("[D:\Directory]") and echoing %Prompt yields "ECHO is OFF". If there's somewhere else to set it I don't remember where that somewhere else is (possibly bad memory as usual).
 
#9
And in a clear-cut case of never-ending additions to this posting, if it's not obvious I found the latest version of the 4Utils plugin, downloaded and installed it, and everything's now fine. Thank you all!