Source code of Windows XP (NT5)
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.

71 lines
1.2 KiB

  1. REM CreServer root_dev server_name [clean] [debug] [sev n] [logsev n]
  2. set RD=%1
  3. set SN=%2
  4. set logpath=-logfile=e:\nt\private\net\svcimgs\ntrepl\%SN%.frs
  5. set loglines=-maxloglines=500000
  6. set severity=
  7. set logseverity=
  8. set CLEAN=NO
  9. set DEBUG=NO
  10. shift
  11. shift
  12. :GETPAR
  13. if /I "%1"=="clean" set CLEAN=YES
  14. if /I "%1"=="debug" set DEBUG=YES
  15. if /I "%1"=="sev" (
  16. set severity=-severity=%2
  17. shift
  18. )
  19. if /I "%1"=="logsev" (
  20. set logseverity=-logseverity=%2
  21. shift
  22. )
  23. shift
  24. if NOT "%1"=="" goto GETPAR
  25. kill -f %SN%
  26. sleep 1
  27. if "%CLEAN%" NEQ "YES" goto RUNIT
  28. REM Clean up staging area
  29. delnode /q %RD%\staging
  30. md %RD%\staging
  31. REM Clean up replica tree
  32. delnode /q %RD%\Replica-A\%SN%
  33. md %RD%\Replica-A\%SN%
  34. REM Cleanup database, log area, db sys area and db temp area.
  35. del %RD%\jet\%SN%\ntfrs.jdb
  36. delnode /q %RD%\jet\%SN%\log
  37. md %RD%\jet\%SN%\log
  38. delnode /q %RD%\jet\%SN%\sys
  39. md %RD%\jet\%SN%\sys
  40. delnode /q %RD%\jet\%SN%\temp
  41. md %RD%\jet\%SN%\temp
  42. :RUNIT
  43. if "%DEBUG%" EQU "YES" goto RUNDEB
  44. main\obj\i386\ntfrs -nods -notservice -server=%SN% %logpath% %loglines% %severity% %logseverity%
  45. goto QUIT
  46. :RUNDEB
  47. ntsd.exe -2 -g -xd cc main\obj\i386\ntfrs -nods -notservice -server=%SN% %logpath% %loglines% %severity% %logseverity%
  48. :QUIT