home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / HILFEN / SYSTEM / RECONFI2 / RECONFIG.BAT < prev    next >
DOS Batch File  |  1993-12-01  |  817b  |  33 lines

  1. ECHO OFF
  2. rem
  3. rem  reconfig - reconfigure autoexec and config.sys files
  4. rem  Copyright (c) 1986, 1988 by Karl Freburger and Dave Donegan
  5. rem  All rights reserved.
  6. rem
  7. set configdir=\configs
  8. if not exist %dir%\*.aut set configdir=c:\configs
  9. if not "%1" == "" goto doit
  10. echo Usage:  reconfig type [noboot]
  11. echo noboot, if present, means do not reboot after reconfiguring.
  12. goto listcfgs
  13.  
  14. :doit
  15. if not exist %configdir%\%1.aut goto fail
  16. if not exist %configdir%\%1.con goto fail
  17. echo Configuring for %1
  18. copy %configdir%\%1.aut c:\autoexec.bat
  19. copy %configdir%\%1.con c:\config.sys
  20. if "%2" == "" reboot
  21. echo You must reboot to have the changes take effect.
  22. goto endit
  23.  
  24. :fail
  25. echo.
  26. echo Cannot use %1 as a type.  %1.aut or %1.con is missing.
  27.  
  28. :listcfgs
  29. dir %configdir%\*.aut
  30.  
  31. :endit
  32. set dir=
  33.