Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
986 B

  1. set /A ii=0
  2. set TT=T:\REPLICA-A\Serv01
  3. set UU=U:\REPLICA-A\Serv02
  4. set DIGIT0=0 1 2 3 4 5 6 7 8 9
  5. set DIGIT1=0 1 2 3 4 5 6 7 8 9
  6. REM
  7. REM Prime the files first so we don't have name morphing probs.
  8. REM
  9. if /I "%1" == "go" goto LOOP
  10. if /I "%1" == "cre" goto CRE
  11. del %TT%\FILE-A*.dat
  12. sleep 200
  13. :CRE
  14. for %%x in (%DIGIT1%) do for %%y in (%DIGIT0%) do echo PRIME %TT% %%x%%y > %TT%\FILE-A%%x%%y.dat
  15. sleep 100
  16. :LOOP
  17. @set /A ii=%ii%+1
  18. @echo Number %ii%
  19. for %%x in (%DIGIT1%) do for %%y in (%DIGIT0%) do echo Data%ii% %TT% %%x%%y >> %TT%\FILE-A%%x%%y.dat
  20. @sleep 2
  21. for %%x in (%DIGIT1%) do for %%y in (%DIGIT0%) do echo Data%ii% %UU% %%x%%y >> %UU%\FILE-A%%x%%y.dat
  22. @sleep 200
  23. @set /A ii=%ii%+1
  24. @echo Number %ii%
  25. for %%x in (%DIGIT1%) do for %%y in (%DIGIT0%) do echo Data%ii% %UU% %%x%%y >> %UU%\FILE-A%%x%%y.dat
  26. @sleep 2
  27. for %%x in (%DIGIT1%) do for %%y in (%DIGIT0%) do echo Data%ii% %TT% %%x%%y >> %TT%\FILE-A%%x%%y.dat
  28. @sleep 200
  29. @goto LOOP