BTM Bugs

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Mar 1, 2017
1
0
#1
I have written several batch files to synchronize files/folders across multiple drives. And they used to work great, but now they work some of the time, but not always. The commands that periodically fail are:

for %I in (%_drives%) do gosub begin

and

for /D %I in (*.*) do gosub doit

Any help would be appreciated.
 
Sep 24, 2013
26
0
#2
You're going to have to provide more detail than "it fails". What happens? Are some drives skipped? Does TCC crash? Do you get an error?
 

samintz

Scott Mintz
May 20, 2008
1,232
11
Solon, OH, USA
#3
If you replace the FOR with DO you can use BDEBUGGER to single step the lines in the DO.
e.g.
Code:
DO d in /L %_drives
  echo doing something with Drive %d
LOOP