home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / CHIPINTE092002.ISO / exe / AUTOEXEC.exe / AUTOEXEC.BAT
Encoding:
DOS Batch File  |  2000-06-08  |  1.2 KB  |  58 lines

  1. @ECHO OFF
  2. path=c:\windows;c:\windows\command
  3. \hibinv.exe
  4. call \checksr.bat
  5. IF "%config%"=="QUICK" GOTO QUICK
  6. set EXPAND=YES
  7. SET DIRCMD=/O:N
  8. set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
  9. set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
  10. cls
  11. call setramd.bat %LglDrv%
  12. set temp=c:\
  13. set tmp=c:\
  14. path=%RAMD%:\;a:\;%path%;%CDROM%:\
  15. copy command.com %RAMD%:\ > NUL
  16. set comspec=%RAMD%:\command.com
  17. copy extract.exe %RAMD%:\ > NUL
  18. copy readme.txt %RAMD%:\ > NUL
  19.  
  20. :ERROR
  21. IF EXIST ebd.cab GOTO EXT
  22. echo Please insert Windows Millennium Edition Startup Disk 2
  23. echo.
  24. pause
  25. GOTO ERROR
  26.  
  27. :EXT
  28. %RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
  29. echo The diagnostic tools were successfully loaded to drive %RAMD%.
  30. echo.
  31.  
  32. IF "%config%"=="NOCD" GOTO QUIT
  33. IF "%config%"=="HELP" GOTO HELP
  34. LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
  35. ::If MSCDEX doesn't find a drive...
  36. IF ERRORLEVEL 1 SET CDPROB=1
  37. ::
  38. GOTO QUIT
  39.  
  40. :HELP
  41. LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
  42. ::If MSCDEX doesn't find a drive...
  43. IF ERRORLEVEL 1 SET CDPROB=1
  44. cls
  45. call help.bat
  46. ::
  47. GOTO QUIT
  48.  
  49. :QUIT
  50. call fixit.bat
  51. rem clean up environment variables
  52. set CDPROB=
  53. set CDROM=
  54. set LglDrv=
  55. GOTO QUICK
  56.  
  57. :QUICK
  58.