I have a set of (.BTM) batch files that I use to update offline copies of my working directories that use the
I recently modified my common batch file to enable command echoing just before running robocopy and got lucky when the issue occurred when synchronizing the first directory. The invocation of robocopy completed and the batch file continued running to next two statements which were
This issue occurs on multiple different PCs. All of the PCs are currently running Windows 10, but if I remember correctly the issue also occured under Windows 7. The working directories are on the C: drive and the offline mirror copies are on USB 3.0 drives (SSD or magnetic).
The common batch file can perform the processing using either
robocopy
program. The top level batch files call a common batch file to perform the work in a uniform way. I have noticed that occasionally batch processing terminates prematurely. I have attempted to work around the issue by looping until a flag is set in both the common batch file and the top level batch files, the looping code never gets a chance to continue the processing because it acts like a cancel
command was encountered. If I manually rerun the top level batch file it will typically run normally but it may also terminate at another point in the processing.I recently modified my common batch file to enable command echoing just before running robocopy and got lucky when the issue occurred when synchronizing the first directory. The invocation of robocopy completed and the batch file continued running to next two statements which were
on break
and a return
. At this point the batch file processing was cancelled with a call
, 3 gosub
s, an iff
, and another gosub
pending.This issue occurs on multiple different PCs. All of the PCs are currently running Windows 10, but if I remember correctly the issue also occured under Windows 7. The working directories are on the C: drive and the offline mirror copies are on USB 3.0 drives (SSD or magnetic).
The common batch file can perform the processing using either
robocopy
or the builtin TCC copy
command. I have never seen this issue occur with the copy
command but robocopy
is about 10 times faster than the copy
command.
Last edited: