Take Command Is Too Fast!

Jun 2, 2008
376
2
Newton, MA
Rex, have you ever received a complaint that TCMD/TCC is too fast!

With my new ultra-high-performance computer, I started having problems with a batch file that had always worked perfectly. It still worked fine when run manually, but it failed wildly when run from a toolbar button. TCMD would crash, spitting out the TCC task to a standalone window.

I finally had an idea as to what was happening. I had combined two commands in the toolbar button, a directory change followed by the batch file to perform a complex display of the directory contents. It occurred to me that the directory display might be running too quickly after the directory change, and sure enough, when I added a mere 10 ms delay (delay /m 10) between the commands, the button started working fine.

Then yesterday I upgraded from version 25 to version 27, and an intermittent problem began to appear during the run of TCSTART when a tab opened. My TCSTART includes execution of the drives.btm file that I showed in the forum a while back. The information for drive C appeared with no problem, but I would get a strange error message about a bad command after "D:" appeared on the screen and before its information was displayed. When I looked at the code in the batch file, I saw that all possible drives were being tested with the @ready function and then information was being extracted by various other functions (e.g., @disktotal). Once I added a 10 ms delay after the @ready invocation, the problem disappeared. The C drive probably worked (1) because I was already logged into it and/or (2) because it is an extremely fast solid-state drive. Drive D is a high capacity mechanical hard drive that I use for archiving material. Version 27 was just enough faster than version 25 to allow the problem to occur.

So, do I need to put in a feature request that you make future versions of Take Command slower :-)

More seriously, do you think that it should be necessary to wait after a directory change before accessing the new area, or does this suggest an issue with the design of my computer?
 
May 20, 2008
11,378
98
Syracuse, NY, USA
Can you post a picture of the toolbar button's dialog so we can see the basic set-up?

Does your second scenario run OK in a TCC stand-alone console?
 
Jun 2, 2008
376
2
Newton, MA
To answer the earlier comments, this had nothing to do with the toolbar button. That's just how I discovered the problem. I could get the same problems to occur in other ways.

Since my original posting, some other code that ran fine under version 25 has been crashing version 27, so there is some issue. For example, sometimes when I run some code to open an application, it opens with focus. At other times, it opens behind TCMD. I have not yet been able to find a pattern.

I did just discover what I think is a real bug in version 27. The same command that runs fine in version 25, fails in 27. I will report that in a separate posting.
 
Similar threads
Thread starter Title Forum Replies Date
M Question about the "Start" command that is admittedly not too important and just out of curiosity... Support 1
D Can alias pass parameters to for command? Support 3
samintz How to? Search for %(command) in Help? Support 1
T VIEW only works from command line Support 14
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20
jpeni Take Command Language Examples Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
fpefpe winfr command Support 4
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
M Selecting test "off by one" problem in Take command Support 4
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
R How to? Open Take Command at current folder Support 7
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
C TEE command appending null characters to output Support 6
vefatica IDE external command syntax color? Support 1

Similar threads