home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / Chip_1998-03_cd.bin / tema / solid / Viewer / SETUP.BAT < prev   
Encoding:
DOS Batch File  |  1996-08-30  |  1.1 KB  |  46 lines

  1. @ECHO OFF
  2.  
  3. REM
  4. REM $c5 JGM 08/30/96 Removed the unnecessary 'echo' which caused problems on win95 
  5. REM $c4 JGM 06/24/96 SOLIDWORKS_ECHO and check setup.exe exists.
  6. REM $c3 JGM 12/15/95 Simplified and added parameters.
  7. REM $c2 LAL 11/17/95 added MIPS
  8. REM $c1 JGM 09/17/95 Added start before setup. 
  9. REM
  10.  
  11. if "%SOLIDWORKS_ECHO%" == "" goto not_verbose
  12.     @echo on
  13. :not_verbose
  14.  
  15. set arch=unset
  16. if not "%winbootdir%" == "" set arch=i386
  17. if "%PROCESSOR_ARCHITECTURE%" == "ALPHA" set arch=Alpha
  18. if "%PROCESSOR_ARCHITECTURE%" == "MIPS" set arch=MIPS
  19. if "%PROCESSOR_ARCHITECTURE%" == "x86" set arch=i386
  20. if not "%arch%" == "unset" goto arch_ok
  21.     echo.
  22.     echo ERROR:  Unknown computer type.
  23.     echo.
  24.     echo For Windows NT:
  25.     echo     Please set 'PROCESSOR_ARCHITECTURE' to one of the following and retry:  
  26.     echo     ALPHA, MIPS or x86
  27.     echo.
  28.     echo For Windows 95:
  29.     echo     Please set 'winbootdir' appropriately.
  30.     echo.
  31.     pause
  32.     goto end
  33. :arch_ok
  34.  
  35. if exist setup\%arch%\setup.exe goto setup_ok
  36.     echo.
  37.     echo ERROR:  setup\%arch%\setup.exe does not exist.
  38.     echo.
  39.     pause
  40.     goto end
  41. :setup_ok
  42.  
  43. cd setup\%arch%
  44. start setup %1 %2 %3 %4 %5 %6
  45.  
  46. :end