Another TCMD "crash" situation...

May 24, 2010
855
0
Northlake, Il
I have a .bat file that scans an entire hard disk (or directory of the user’s choosing) looking for .zip files and doing certain things to them (I'm not being specific because it is a long and rather complex .bat file - although I would be OK with e-mailing it to anybody that is interested). The .bat file basically starts out with "For /R %Drv /D %Dir in (*) Do (For %File in ("%Dir\*.zip") Do (Call Z:\CZT7Z FILE "%File"))" (It calls itself recursively (it only goes one level deep) to make coding somewhat easier and the keyword "FILE" is used to indicate that it should execute the one-level deep code.) Problem is this – apparently when my directory structure goes too deep (I think that’s what is causing it, but I’m not sure) Take Command crashes and then restarts. (As another possibility, it may be because the length of the full path of the directory it is currently handling becomes too long.) Just reporting a bug. (Said with some humor: In my view a program that crashes anytime is, by definition, buggy - programs should never crash for any reason whatsoever - and I (mostly successfully) write my own code (C++ and Visual Basic) with that standard in mind. However, I want to assure you that I don't expect every program (including my own, unfortunately) to always meet that standard.)
<O:p</O:p
 

rconn

Administrator
Staff member
May 14, 2008
12,346
150
> I have a .bat file that scans an entire hard disk (or directory of the
> user's choosing) looking for .zip files and doing certain things to
> them (I'm not being specific because it is a long and rather complex
> .bat file - although I would be OK with e-mailing it to anybody that is
> interested). The .bat file basically starts out with "For /R %Drv /D
> %Dir in (*) Do (For %File in ("%Dir\*.zip") Do (Call Z:\CZT7Z FILE
> "%File"))" (It calls itself recursively (it only goes one level deep)
> to make coding somewhat easier and the keyword "FILE" is used to
> indicate that it should execute the one-level deep code.) Problem is
> this - apparently when my directory structure goes too deep (I think
> that's what is causing it, but I'm not sure) Take Command crashes and
> then restarts.

I presume you mean that TCC crashes (since Take Command couldn't have any
involvement with batch file execution). The restart is odd, since there's
nothing in TCC that could cause a restart after a crash. (Only Windows
could do that.)

I can't even begin to guess at the problem without seeing a batch file that
can reliably reproduce the crash. Please email me your batch file
(preferably with the unrelated complexity removed).

Rex Conn
JP Software
 
May 24, 2010
855
0
Northlake, Il
I presume you mean that TCC crashes (since Take Command couldn't have any
involvement with batch file execution). The restart is odd, since there's
nothing in TCC that could cause a restart after a crash. (Only Windows
could do that.)

I can't even begin to guess at the problem without seeing a batch file that
can reliably reproduce the crash. Please email me your batch file
(preferably with the unrelated complexity removed).

Rex Conn
JP Software

Rex,

I'd be glad to send you the .bat file, but it is not really possible for me to remove that complexity because I don't really have a clue as to where in that complexity TCC is crashing. Also, the .bat file depends on two executables that you may not have available to you, so I will zip them up also and send them with the .bat file. Unfortunately, I've made dozens of changes to the .bat file over time, and it hasn't crashed in several hours. But I'll zip it up with the two needed executables and you can do with it as you will.

As far as the TCC "restart" is concerned, that is very definitely occuring, I know this because it has happened dozens of times at this point, and the "restarted" TCC is not in a "Take Command" window, which is kind of a pain, if I do say so myself.
 

Attachments

  • BatchFileFailureStuff.zip
    154.6 KB · Views: 58
Similar threads
Thread starter Title Forum Replies Date
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
vefatica Another popup problem Support 10
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
G Press on another Window Support 24
M Another possibly strange remote registry issue Support 5
vefatica Another problem with build 22. Support 3
Patulus Yet another thread on CMD compatibility Support 16
M Take Command 18, migrating to another machine, license problem. Support 1
MickeyF Another TPIPE question Support 6
vefatica Another installer thingy Support 1
vefatica Another @EVERYTHING question Support 4
C Touch command — I Need to touch matching files in another directory. Support 5
M Another "What is wrong?" Support 8
Bill de Haan Another installation is in progress Support 6
fishman@panix.com Another Problem with The Installer Support 1
Charles Dye Another modest proposal Support 4
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
M WAD Another weird copy command errror... Support 2
M Yet another strange something re something called "@TCONVERT" Support 8
Charles Dye Documentation Another help nit Support 3
K_Meinhard Documentation Another installer nit Support 1
ehab aboudaya How to? change ALT-F6 to another key Support 1
A How to? Pass output from ffind to another command in a BTM file Support 5
M Another simple question re. Take Command/TCC window witdth in characters... Support 16
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
M Another bit of weirdness.... Support 0
S MOVE from FTP directory to another FTP directory - bug?? Support 2
vefatica Another debugger observation Support 12
vefatica Another DO /L question Support 1
S Need help to execute TCC commands on another system Support 6
B TCC doesn't run using another user Support 2
H Another multiple FTP password prompt issue Support 2
Peter Bratton Another little bug? Support 1
M Another problem with renaming files... Support 3
nikbackm Another HISTORY dialog issue Support 0
vefatica Another help nit Support 12
S Another 4NT 8.02 vs TCC 9.02 diff - MOVE command Support 3
p.f.moore Running another batch file without CALL Support 7
MickeyF equivalent to TCSTART.btm for TCMD? Support 4
D Bug TCMD /X option Support 6
vefatica TCMD hides itself! Support 3
vefatica Tray min'd TCMD and ACTIVATE Support 6
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
kb6ojs How to? "Specified Account Already Exists" error installing TCMD v27 Support 12
CWBillow TCMD Colors Support 8
Jay Sage Issues With TCMD File Explorer Support 0
C Last TCMD that supports win 7? Support 5
gentzel TCMD background color confusion Support 6
R Upgrade TCMD 19 to TCC 26 Support 1

Similar threads