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.

160 lines
2.7 KiB

  1. @echo off
  2. if "%1"=="?" goto help
  3. if "%1"=="/?" goto help
  4. if "%1"=="-?" goto help
  5. REM
  6. REM Set PMTE_INSTALL_APP_NAME to point to the
  7. REM right binary for this platform
  8. REM
  9. set PMTE_INSTALL_APP_NAME=NON
  10. if %PROCESSOR_ARCHITECTURE% == x86 (
  11. set PMTE_INSTALL_APP_NAME=x86\ssetup.exe
  12. )
  13. if %PROCESSOR_ARCHITECTURE% == IA64 (
  14. set PMTE_INSTALL_APP_NAME=ia64\ssetup.exe
  15. )
  16. if %PMTE_INSTALL_APP_NAME% == NON (
  17. echo - ERROR Unable to deternin system architecture.
  18. goto :EOF
  19. )
  20. echo - Installing PMTE (%~dp0%PMTE_INSTALL_APP_NAME%)
  21. REM
  22. REM Check if file exits
  23. REM
  24. if not exist %~dp0%PMTE_INSTALL_APP_NAME% (
  25. echo - ERROR The file %~dp0%PMTE_INSTALL_APP_NAME% is not found.
  26. goto :EOF
  27. )
  28. REM
  29. REM Install and start pmte.exe
  30. REM
  31. %~dp0%PMTE_INSTALL_APP_NAME% /inf: pmte.inf
  32. if not "%ERRORLEVEL%"=="0" (
  33. echo - Install cancled
  34. goto :EOF
  35. )
  36. echo - Change to %systemdrive%\pmte
  37. %systemdrive%
  38. cd \pmte
  39. REM
  40. REM check if to run pmte.
  41. REM
  42. if /i "%1"=="" (
  43. echo - Starting pmte manualy
  44. pmte
  45. goto :EOF
  46. )
  47. if /i "%1"=="BOOTTEST" (
  48. echo - Starting BootTest run [btnrpmte.CMD]
  49. if not exist btnrpmte.CMD (
  50. ECHO - ERROR btnrpmte.CMD failed to install.
  51. goto :EOF
  52. )
  53. btnrpmte %2 %4 %5 %6 %7 %8 %9
  54. goto :EOF
  55. )
  56. if /i "%1"=="BASIC" (
  57. if "%2"=="" (
  58. echo - ERROR Invalid command line.
  59. goto help
  60. )
  61. echo - Starting Basic PMTE run . Count: %2
  62. if not exist pmte.exe (
  63. ECHO - ERROR pmte.exe failed to install.
  64. goto :EOF
  65. )
  66. pmte /rs: boot_test.psf %2 /sdt: floppy /netio /netshare: \\hctpro\pmte\io %3 %4 %5 %6 %7 %8 %9
  67. goto :EOF
  68. )
  69. if /i "%1"=="DTIMEOUT" (
  70. if "%2"=="" (
  71. echo - ERROR Invalid command line.
  72. goto help
  73. )
  74. echo - Starting Basic PMTE run . Count: %2
  75. if not exist pmte.exe (
  76. ECHO - ERROR pmte.exe failed to install.
  77. goto :EOF
  78. )
  79. pmte /rs: dtimeout.psf %2 /DST: 60 /sdt: floppy /netio /netshare: \\hctpro\pmte\io %3 %4 %5 %6 %7 %8 %9
  80. goto :EOF
  81. )
  82. if /i "%1"=="PNP_PMTE" (
  83. if "%2"=="" (
  84. echo - ERROR Invalid command line.
  85. goto help
  86. )
  87. echo - Starting PNP PMTE run . Count: %2
  88. if not exist pmte.exe (
  89. ECHO - ERROR pmte.exe failed to install.
  90. goto :EOF
  91. )
  92. pmte /rs: pnp_pmte.psf %2 /sdt: floppy /CHOP /netio /netshare: \\hctpro\pmte\io %3 %4 %5 %6 %7 %8 %9
  93. goto :EOF
  94. )
  95. if /i "%1"=="INS" (
  96. echo - Only install pmte.
  97. goto :EOF
  98. ) else (
  99. echo - ERROR Invalid command line.
  100. goto help
  101. )
  102. :HELP
  103. echo =========================
  104. echo Install and run PMTE
  105. echo IPMTE BOOTTEST
  106. echo IPMTE BASIC [Count]
  107. echo IPMTE INS
  108. echo IPMTE PNP_PMTE [count]
  109. echo =========================
  110. goto :EOF