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.

46 lines
909 B

  1. @echo off
  2. setlocal
  3. rem
  4. rem Choose location
  5. rem
  6. set LOC=%1
  7. if "%LOC%" == "" if exist %_NT386TREE%\Query\isdrv3.inf set LOC=%_NT386TREE%\Query
  8. if "%LOC%" == "" if exist %_NTAlphaTREE%\Query\isdrv3.inf set LOC=%_NTAlphaTREE%\Query
  9. if "%LOC" == "" goto Usage
  10. rem
  11. rem Choose OCM
  12. rem
  13. set OCM=\oc
  14. if exist %windir%\system32\sysocmgr.exe set OCM=%windir%\system32
  15. rem
  16. rem Decide on debugger
  17. rem
  18. set DEBUGGER=cdb
  19. set DBGFLAGS=-g -G
  20. if exist %LOC%\indexsrv.pdb set DEBUGGER=windbg& set DBGFLAGS=-g
  21. rem
  22. rem Look for InetInfo. If it's running, assume a web setup.
  23. rem
  24. set INETINFO=0
  25. for /F "tokens=1-2" %%i in ('tlist') do if "%%j" == "inetinfo.exe" set INETINFO=1
  26. if "%INETINFO%" == "0" start %DEBUGGER% %DBGFLAGS% %OCM%\sysocmgr /i:%LOC%\isdrv3nt.inf /n
  27. if "%INETINFO%" == "1" start %DEBUGGER% %DBGFLAGS% %OCM%\sysocmgr /i:%LOC%\isdrv3.inf /n
  28. goto end
  29. :Usage
  30. echo Usage: %0 [release point]
  31. :end
  32. endlocal