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.

67 lines
1.4 KiB

  1. @echo off
  2. setlocal
  3. if CMDEXTVERSION 1 goto cmdok
  4. echo.
  5. echo This script requires CMD version 4.0 or better with
  6. echo CMD extensions version 1 enabled.
  7. goto end
  8. :cmdok
  9. REM
  10. REM check parameters
  11. REM
  12. if "%1"=="" goto usage
  13. set BUILD_NUM=%1
  14. REM
  15. REM Main hard-coded parameters
  16. REM
  17. set TARGET=\\online1\oleds
  18. set DROP_TARGET=%TARGET%\drop\%BUILD_NUM%
  19. set LOCAL_OLEDS_DIR=%_NTDRIVE%%_NTROOT%\private\oleds
  20. set PLATFORM=
  21. set ARCH=%PROCESSOR_ARCHITECTURE%
  22. if /i "%ARCH%" == "x86" set PLATFORM=i386
  23. if /i "%ARCH%" == "mips" set PLATFORM=mips
  24. if /i "%ARCH%" == "alpha" set PLATFORM=alpha
  25. if /i "%ARCH%" == "ppc" set PLATFORM=ppc
  26. if /i "%2"=="win95" set PLATFORM=win95
  27. if not defined PLATFORM goto badarch
  28. set CDF_DIR=%DROP_TARGET%\fre\%PLATFORM%
  29. REM
  30. REM Check that necessary dirs are around
  31. REM
  32. if not exist %CDF_DIR% goto badcdfdir
  33. if not exist %LOCAL_OLEDS_DIR% goto badlocaloledsdir
  34. %LOCAL_OLEDS_DIR%\setup\iexpress\%ARCH%\iexpress /n %CDF_DIR%\ads.cdf
  35. if errorlevel 1 echo Error creating self-extracting executable.
  36. del %CDF_DIR%\~*.CAB
  37. goto end
  38. :usage
  39. echo usage: %0 ^<version^>
  40. goto end
  41. :badarch
  42. echo Bad architecture: %ARCH%
  43. goto end
  44. :badcdfdir
  45. echo Bad directory: %CDF_DIR%
  46. goto end
  47. :badlocaloledsdir
  48. echo Bad directory: %LOCAL_OLEDS_DIR%
  49. echo Make that sure _NTDRIVE and _NTROOT are defined.
  50. goto end
  51. :end
  52. endlocal