home *** CD-ROM | disk | FTP | other *** search
/ Introduction to Guitar / IntroductionToGuitar1995.disc1of1.bin / tutor_5 / install.bat < prev    next >
DOS Batch File  |  1995-12-10  |  949b  |  41 lines

  1. echo off
  2. cls
  3. echo Installing from %1 to %2 ...
  4. :PREP
  5. if %1 '=='  goto NOPARM
  6. if %2 '=='  goto NOPARM
  7. if not exist %1\NUL goto BADFROM
  8. if not exist %2\NUL mkdir %2
  9. if not exist %2\NUL goto BADTO
  10. :INSTALL
  11. copy %1\*.* %2
  12. %1\getvideo
  13. if errorlevel 1 goto COLOR
  14. if errorlevel 0 goto MONO
  15. :COLOR
  16. echo Installing COLOR profile ...
  17. copy %1\COLOR.PRO %2\TUNES.PRO
  18. goto SUCCESS
  19. :MONO
  20. echo Installing MONOCHROME profile ...
  21. copy %1\MONO.PRO %2\TUNES.PRO
  22. goto SUCCESS
  23. :NOPARM
  24. echo Installation failed ... Must specify DRIVE and DIRECTORY parameters.
  25. goto FAILURE
  26. :BADFROM
  27. echo Installation failed ... Invalid drive letter "%1".
  28. goto FAILURE
  29. :BADTO
  30. echo Installation failed ... Unable to create directory "%2".
  31. echo Please create using the "mkdir" command and try again.
  32. goto DONE
  33. :FAILURE
  34. echo Example:  A:INSTALL A: C:\TUNES
  35. goto DONE
  36. :SUCCESS
  37. echo Installation successful ...
  38. echo Type "tunes" to start ...
  39. cd %2
  40. :DONE
  41.