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.

55 lines
2.2 KiB

  1. {
  2. printf "\n\n:%dStart\n",NR
  3. printf " echo Processing %s ... \n",$1
  4. printf " echo Ssyncing %s ... > %%bldDir%%\\ssync.tmp\n",$1
  5. printf " if not exist %s\\slm.ini goto %dNotSlm\n",$1,NR
  6. printf " cd %s\n",$1
  7. printf " sadmin unlock -^&rf > nul\n"
  8. printf " ssync -^&rf >> %%bldDir%%\\ssync.tmp\n"
  9. printf "\n %%myGrep%% \"Sleeping\" %%bldDir%%\\ssync.tmp\n"
  10. printf " if errorlevel 1 goto %da\n",NR
  11. printf " goto %dErr\n",NR
  12. printf ":%da\n",NR
  13. printf " %%myGrep%% \"network path not found\" %%bldDir%%\\ssync.tmp\n"
  14. printf " if errorlevel 1 goto %db\n",NR
  15. printf " goto %dErr\n",NR
  16. printf ":%db\n",NR
  17. printf " %%myGrep%% \"is not accessible\" %%bldDir%%\\ssync.tmp\n"
  18. printf " if errorlevel 1 goto %dc\n",NR
  19. printf " goto %dErr\n",NR
  20. printf ":%dc\n",NR
  21. printf " %%myGrep%% \"retry count over maximum\" %%bldDir%%\\ssync.tmp\n"
  22. printf " if errorlevel 1 goto %dd\n",NR
  23. printf " goto %dErr\n",NR
  24. printf ":%dd\n",NR
  25. printf " %%myGrep%% \"is not valid\" %%bldDir%%\\ssync.tmp\n"
  26. printf " if errorlevel 1 goto %de\n",NR
  27. printf " goto %dErr\n",NR
  28. printf ":%de\n",NR
  29. printf " %%myGrep%% \"is locked by\" %%bldDir%%\\ssync.tmp\n"
  30. printf " if errorlevel 1 goto %df\n",NR
  31. printf " goto %dErr\n",NR
  32. printf ":%df\n",NR
  33. printf " %%myGrep%% \"unexpected network error\" %%bldDir%%\\ssync.tmp\n"
  34. printf " if errorlevel 1 goto %dg\n",NR
  35. printf " goto %dErr\n",NR
  36. printf ":%dg\n",NR
  37. printf " %%myGrep%% \"error opening script\" %%bldDir%%\\ssync.tmp\n"
  38. printf " if errorlevel 1 goto %dX\n",NR
  39. printf " goto %dErr\n",NR
  40. printf "\n:%dErr\n",NR
  41. printf " echo %s - errors during ssync - retrying \n",$1
  42. printf " echo %s - errors during ssync - retrying >> %%bldDir%%\\ssync.out\n",$1
  43. printf " goto %dStart\n",NR
  44. printf "\n:%dnotSlm\n",NR
  45. printf " echo %s - not a SLM dir - skipping \n",$1
  46. printf " echo %s - not a SLM dir - skipping >> %%bldDir%%\\ssync.tmp\n",$1
  47. printf " goto %dX\n",NR
  48. printf "\n:%dX\n",NR
  49. printf " type %%bldDir%%\\ssync.tmp \n"
  50. printf " type %%bldDir%%\\ssync.tmp >> %%bldDir%%\\ssync.out\n"
  51. }