Fixed 20.10 strangeness with external commands

May 26, 2008
Since installing version 20.10, I get strange results with external commands in both TCC and PowerShell, but only when they are attached to TCMD.

In TCC, when I run an external command, the next command prompt is displayed before the output from said external command.

In PowerShell, it actually displays an error about the external command failing to run and a handle being invalid, but the output is still shown. Like TCC, the next command prompt is displayed too early. A bit hard to describe. See attached screen shots.

Did not see this effect before installing 20.10.32.




  • cap1.PNG
    15.2 KB · Views: 83
  • cap2.PNG
    7.1 KB · Views: 83


Staff member
May 14, 2008
Not reproducible here, and it's hard to see how TCMD could be involved unless you got a chip from Intel that disabled all of the hardware protection.

The only thing that TCMD could do (peripherally) to affect a console app is if you have ANSI support enabled (configure TakeCommand / Tabs / ANSI colors). In that case it injects a dll into the console app to allow ANSI escape sequences. (This has not changed in 20.10.) If you have that option enabled, try turning it off and see if that affects the output.
May 26, 2008
Good guess, turning off ANSI support seems to have stopped the problem. I turned it back on and the problem returned.
May 26, 2008
Not anything that I'm aware of.

It happens on both my work and home systems.

Work: Windows 10 Enterprise x64 14393.321
Home: Windows 10 Pro x64 14986.1001

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
I can reproduce this, only with TCmd's ANSI support turned on.


FWIW, this is not only a different version of Windows and a different bithood than Rod, but even a different PING utility.
Jan 12, 2014
Switzerland, SO
I turned off ANSI in TCMD and everything seems ok. It's just a new bug which is why I reported it. I've probably had ANSI turned on in TCMD for years without any issue until 12.10.
Really in TCMD (was only possible through INI till 20.10)? Or just in TCC, because you should not activate it in TCC AND in TCMD ...
Similar threads
Thread starter Title Forum Replies Date
Jay Sage "New Tab" Strangeness Support 2
M WAD A bit of strangeness related to Unicode-marked file not being Unicode Support 2
M Just an argument-passing "strangeness" that I didn't expect... Support 19
M A little bit of strangeness with @Char... Support 3
R TC9 FTP strangeness - solved - for KB only Support 1
vefatica IDE external command syntax color? Support 1
gentzel Bug launching external commands in 20.11.43 Support 11
Stefano Piccardi list of TCC commands for external editors Support 4
A How to? Run a TCC command from external program Support 2
T How to? Logging Output from External Programs Support 4
M How to? Get the return code from an external program... Support 8
H Ruby - Running External Ruby script crashes TCC Support 11
nikbackm Alias - launch external program - batch file Support 16
R Don't wake up external drives on startup Support 2
vefatica Console not redrawn in BTM or with multiple commands Support 4
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
kb6ojs ALIAS with multiple commands? Support 9
R Long commands retrieved from command history have blank line when wrapped Support 20
vefatica Timing commands with $= in the prompt? Support 16
A Fixed v25 regression: Parameter expansion fails in piped commands Support 2
A Key Commands missing? Support 3
Dick Johnson New database commands Support 8
F Regexes in REN/MOVE/… commands seem to not work at all Support 3
M Keywords for commands, functions, internal variables Support 3
M Disable commands? Support 2
thedave Problem chaining piped FIND commands in BTM Support 7
D Some commands are not displaying their command dialog Support 2
C MONITOR commands alter tab title when triggered Support 0
Alpengreis Documentation TC Help v18.x "Commands by Category" is incomplete Support 0
R How to? Launch and execute commands in tcmd.exe through MSBuild Script. Support 3
D WAD TASKBAR window commands confuses our friends at MS Support 4
I tab completion with directory commands Support 7
I most used commands Support 2
mikea How to? TCC and ftp:// commands Support 7
R Override TCC internal commands Support 2
S Directory history entries from /S option of various commands Support 2
M A simple question related to the "dir" (and "pdir") commands... Support 5
R TC 13 / Using TCDIALOG to exit commands Support 4
J syntax problems multiple commands (command & command) Support 4
C User error with low level file* commands Support 8
S Need help to execute TCC commands on another system Support 6
electrotype keyboard shotcuts to send commands to a TCC tab? Support 8
Charles Dye Updated _bat.schclass with v11 new commands/keywords Support 1
L Vista 64 bits missing commands Support 1
deleyd Commands to launch Control Panel items? Support 10

Similar threads