home *** CD-ROM | disk | FTP | other *** search
/ Windows NT Super Tune-Up Kit / PIE-WindowsNTSuperTuneUpKit-1997.iso / RESRCKIT / NT31 / PERFTOOL / PERF.EXE / PERFTOOLS / INSTALL.BAT next >
DOS Batch File  |  1993-09-07  |  2KB  |  75 lines

  1. @echo off
  2.  
  3. REM ========================================
  4. REM Check if too many parameters were given.
  5. REM ========================================
  6.  
  7. if not "%2"=="" goto USAGE
  8.  
  9. REM ===========================
  10. REM Check if running Windows NT
  11. REM ===========================
  12.  
  13. set CHIP=\perftool
  14. set INSTALL_EXE=
  15. if "%PROCESSOR_ARCHITECTURE%"=="" goto USAGE
  16. if "%PROCESSOR_ARCHITECTURE%"=="x86" set INSTALL_EXE=INSTALLX.86
  17. if "%PROCESSOR_ARCHITECTURE%"=="MIPS" set INSTALL_EXE=INSTALLM.IPS
  18. if "%PROCESSOR_ARCHITECTURE%"=="ALPHA" set INSTALL_EXE=INSTALLA.LP
  19. if "%INSTALL_EXE%"=="" goto USAGE
  20.  
  21. REM ==============================
  22. REM If a parameter is given use it
  23. REM ==============================
  24.  
  25. if "%1"=="" goto FLOPPYCHECK
  26. set RKROOT=%1\
  27. goto SETUP
  28.  
  29. REM ============================================                     
  30. REM Check if using floppies or current directory
  31. REM ============================================                     
  32.  
  33. :FLOPPYCHECK
  34. set CURRENT_DIR=.\
  35. if not exist %CURRENT_DIR%install.inf goto CDCHECK
  36. if not exist %CURRENT_DIR%install.bat goto CDCHECK
  37. set RKROOT=%CURRENT_DIR%
  38. goto SETUP
  39.  
  40. REM =================
  41. REM Check if using CD
  42. REM =================
  43.  
  44. :CDCHECK
  45. if not exist %CHIP%install.inf goto USAGE
  46. if not exist %CHIP%install.bat goto USAGE
  47. set RKROOT=%CHIP%
  48. goto SETUP
  49.  
  50. :USAGE
  51. echo.
  52. echo INSTALL.BAT installs the tools described in the book, 
  53. echo "Optimizing Windows NT", by Russ Blake (Microsoft Press, 1993.)
  54. echo You must be running Windows NT before starting INSTALL.
  55. echo.
  56. echo USAGE - INSTALL [Drive or directory that contains the tools files]
  57. echo.
  58. echo If you specify a Drive, do not include a trailing slash.
  59. echo If you specify a directory, it must be an absolute path that includes
  60. echo the drive specification.
  61. echo.
  62. echo Example - INSTALL A:
  63. echo Example - INSTALL B:
  64. echo Example - INSTALL D:\PERFTOOLS
  65. echo Example - INSTALL \\SERVER\SHARE\PERFTOOLS
  66. echo.
  67. pause
  68. goto END
  69.  
  70. :SETUP
  71. start %RKROOT%%INSTALL_EXE%
  72. goto END
  73.  
  74. :END
  75.