home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / CLIPPER / XD211.ZIP / INSTALL.BAT next >
DOS Batch File  |  1994-01-30  |  1KB  |  55 lines

  1. @echo off
  2. cls
  3. echo xDot Clipper Interpreter Installation
  4. if %1. == . goto usage
  5. if %2. == . goto usage
  6.  
  7. if not exist %1xdot2.exe goto badsrc
  8. if exist %2\nul goto next
  9. md %2
  10. if not exist %2\nul goto baddest
  11.  
  12. :next
  13. echo .
  14. echo Installing xDot Clipper Interpreter from %1 to %2...
  15. %1xdot2 %2 /d
  16. if errorlevel==0 goto done
  17.  
  18. echo Error installing xDot Clipper Interpreter!
  19. goto outahere
  20.  
  21. :badsrc
  22. echo Bad source drive! (Where are you running this from?!?)
  23. goto usage
  24.  
  25. :baddest
  26. echo Bad target directory!
  27. goto usage
  28.  
  29. :usage
  30. echo  
  31. echo Usage:
  32. echo        {source drive}:INSTALL {source drive}: {target drive/directory}
  33. echo  
  34. echo where
  35. echo        {source drive}     = Drive containing xDot diskette.
  36. echo        {target directory} = Directory on drive where xDot
  37. echo                             is to be installed.  If the directory does
  38. echo                             not exist it will be created.
  39. echo  
  40. echo EXAMPLE:   A:INSTALL A: C:\XDOT
  41. echo  
  42. echo        This will install xDot from the diskette in drive A: to the
  43. echo        XDOT directory on drive C:.
  44. goto outahere
  45.  
  46. :done
  47.  
  48. echo Done!
  49. cls
  50. echo xDot Clipper Interpreter Installation Complete
  51. echo Type "XD" from the target directory to begin.
  52. echo.
  53.  
  54. :outahere
  55.