C-c terminates Take Command

Jun 26, 2008
38
1
I see that build 61 included this change:

(61) Fixed a (Windows) bug with repeated ^Breaks sometimes terminating TCMD.EXE

Paradoxically, since that build ^C sometimes terminates Take Command (I'm using build 64 right now and the issue still happens).

It does not happen all the time, but quite often. For example, I have a .btm file:

@echo off
do forever
pssuspend %1
delay 60
pssuspend -r %1
delay 90
enddo

(where pssuspend is a PS Tool from Sysinternals). When that script is running, pressing ^C during one of the delays terminates Take Command most of the time (but not always). I've also had the problem ^C'ing out of list /s, etc.
 

rconn

Administrator
Staff member
May 14, 2008
12,312
147
Juanma Barranquero wrote:

> I see that build 61 included this change:
>
> (61) Fixed a (Windows) bug with repeated ^Breaks sometimes terminating TCMD.EXE
>
> Paradoxically, since that build ^C sometimes terminates Take Command (I'm using build 64 right now and the issue still happens).
>
> It does not happen all the time, but quite often. For example, I have a .btm file:
>
> @echo off
> do forever
> pssuspend %1
> delay 60
> pssuspend -r %1
> delay 90
> enddo
>
> (where pssuspend is a PS Tool from Sysinternals). When that script is running, pressing ^C during one of the delays terminates Take Command most of the time (but not always). I've also had the problem ^C'ing out of list /s, etc.

Not reproducible here. I tried running it 100 times with ^C and it
always gave me the prompt to terminate the batch file. I then tried it
100 times with a ^Break and that worked too.

Anybody else having a problem with ^C?

Rex Conn
JP Software
 
Jun 26, 2008
38
1
On Fri, Apr 3, 2009 at 03:38, rconn <> wrote:


> Not reproducible here.

I supposed as much :(


>Â*I tried running it 100 times with ^C and it
> always gave me the prompt to terminate the batch file.

I just terminated TCMD by doing "dir /p" followed by ^C. But it does
not happen all the time.

I don't know the reason, but it started just after your changes to fix
^Break. Perhaps another Windows bug.

Juanma
 
May 20, 2008
603
0
Sammamish, WA
TCC 10.00.64 Windows XP [Version 5.1.2600]
TCC Build 64 Windows XP Build 2600 Service Pack 3

I was testing this and found that ^C worked with *DIR /P flawlessly
100 times in a row.

I started then testing with ^Break and after twenty times, TCMD
vanished leaving orphaned TCC sessions.

I tried to repeat the test, but it worked flawlessly the next 100 times.

I've been trying to repeat the test, even mixing ^C and ^Break but
cannot get a failure yet.

On Fri, Apr 3, 2009 at 4:45 AM, Juanma Barranquero
<> wrote:

> On Fri, Apr 3, 2009 at 03:38, rconn <> wrote:
>
>
>
> ---Quote---
>> Not reproducible here.
> ---End Quote---
> I supposed as much :(
>
>
>
> ---Quote---
>>Â*I tried running it 100 times with ^C and it
>> always gave me the prompt to terminate the batch file.
> ---End Quote---
> I just terminated TCMD by doing "dir /p" followed by ^C. But it does
> not happen all the time.
>
> I don't know the reason, but it started just after your changes to fix
> ^Break. Perhaps another Windows bug.
>
> * *Juanma
>
>
>
>
>



--
Jim Cook
2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Sunday.
 
Jun 26, 2008
38
1
On Fri, Apr 3, 2009 at 16:48, Jim Cook <> wrote:


> I started then testing with ^Break and after twenty times, TCMD
> vanished leaving orphaned TCC sessions.

That's what I see (TCMD dies, the TCC sessions continue running,
though they don't have a window).

It has never happened to me with ^Break, only ^C, but that's not
unexpected, as I hardly ever use ^Break.

Juanma
 

rconn

Administrator
Staff member
May 14, 2008
12,312
147
Juanma Barranquero wrote:

> On Fri, Apr 3, 2009 at 03:38, rconn <> wrote:
> ---Quote---
>> Â*I tried running it 100 times with ^C and it
>> always gave me the prompt to terminate the batch file.
> ---End Quote---
> I just terminated TCMD by doing "dir /p" followed by ^C. But it does
> not happen all the time.
>
> I don't know the reason, but it started just after your changes to fix
> ^Break. Perhaps another Windows bug.

Still not reproducible here. Are you running any keyboard drivers or
background processes that monitor the keyboard?

Rex Conn
JP Software
 
Jun 26, 2008
38
1
On Sat, Apr 4, 2009 at 23:15, rconn <> wrote:


> Still not reproducible here. Â*Are you running any keyboard drivers or
> background processes that monitor the keyboard?

Likely, though not on purpose. This is on a HP Pavilion laptop with
Windows XP Home, BTW. There are HP-specific drivers, etc.

Programs likely to affect or monitor the keyboard:

"Quick Launch Buttons", Hewlett-Packard, c:\program files\hpq\quick
launch buttons\eabservr.exe
"TrueCrypt", TrueCrypt Foundation, c:\program files\truecrypt\truecrypt.exe
CoolSwitch,, c:\windows\system32\taskswitch.exe

plus McAfee. There's also a bunch of programs/drivers for the
Synaptics Touchpad, but I don't know whether these would affect the
keyboard.

Quick Launch Buttons is an app to support some fancy multimedia
buttons. TrueCrypt is a disk encrypter; and CoolSwitch is a nicer
Alt-Tab replacement.

None of these programs is recently installed or updated.

Juanma
 
Similar threads
Thread starter Title Forum Replies Date
vefatica ON ERROR terminates DO loop. Support 0
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 7
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 Take Command Is Too Fast! 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
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
Alpengreis List command: text truncated in find box (german) Support 9

Similar threads