home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / vrac / almdn200.zip / AUTOMOD.BAT < prev    next >
DOS Batch File  |  1995-07-04  |  1KB  |  38 lines

  1. @echo off
  2. echo.
  3. echo Alarm v2.00 ∙ Copyright (c) 1994-95 by Dale Nurden
  4. echo AUTOMOD.BAT
  5. echo.
  6.  
  7. if %1. == . goto Error
  8. if not exist %1\ALARMTSR.COM goto Error
  9. if not exist %1\ALARM.EXE goto Error
  10.  
  11. echo AUTOMOD will make changes to your AUTOEXEC.BAT file.
  12. echo The original file will be renamed to AUTOEXEC.OLD, so you can always
  13. echo undo any changes made here by typing the following command:
  14. echo.
  15. echo    COPY C:\AUTOEXEC.OLD C:\AUTOEXEC.BAT
  16. echo.
  17. echo If you would like AUTOMOD to proceed with the changes, press ENTER now.
  18. echo Otherwise, press Ctrl-Break or Ctrl-C to cancel.
  19. pause > nul
  20.  
  21. copy c:\autoexec.bat c:\autoexec.old > nul
  22. echo %1\alarm /s >> c:\autoexec.bat
  23. echo %1\alarmtsr >> c:\autoexec.bat
  24.  
  25. echo.
  26. echo The changes have been made.
  27. goto End
  28.  
  29. :Error
  30. echo You must specify the complete path to the directory containing the
  31. echo ALARM program files. Do not include a trailing backslash.
  32. echo.
  33. echo An example of what you might type is:
  34. echo    AUTOMOD C:\ALARM
  35.  
  36. :End
  37. echo.
  38.