home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / FL40-05.ZIP / SUMMATAB.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-04-19  |  3.1 KB  |  94 lines

  1. echo off
  2. echo Installs/De-Installs Freelance Graphics Summagraphics SummaSketch device driver
  3. if he%3lp==help goto help
  4. if not exist fltool.com goto err1util
  5. fltool fullpath %3
  6. if errorlevel 1 goto help
  7. rem
  8. rem  Check for validity of input arguments
  9. rem
  10. if %1 == 1201 goto port
  11. if %1 == 961 goto port
  12. if %1 == 0 goto deins
  13. goto help
  14. :port
  15. if %2 == 0 goto help
  16. if %2 == 1 goto patch
  17. if %2 == 2 goto patch
  18. if %2 == 3 goto patch
  19. if %2 == 4 goto patch
  20. goto help
  21. :deins
  22. if %2 == 0 goto patch
  23. goto help
  24. :patch
  25. fltool exist %3\fl.com
  26. if errorlevel 1 goto errdir
  27. if not exist flpatch.com goto err1util
  28. if %1 == 1201 flpatch -TABLET 2 %2 %3\fl.com %3\fl.com
  29. if %1 == 961 flpatch -TABLET 1 %2 %3\fl.com %3\fl.com
  30. if %1 == 0 flpatch -TABLET 0 %2 %3\fl.com %3\fl.com
  31. if errorlevel 1 goto error
  32. rem
  33. rem  Copy tablet module to Freelance Graphics directory
  34. rem
  35. fltool exist %3\gcisd.exe
  36. if errorlevel 1 goto errdir
  37. if %1 == 0 goto rmfile
  38. copy gcitab.exe %3\tablet.exe
  39. fltool exist %3\tablet.exe
  40. if errorlevel 1 goto error
  41. goto end
  42. :rmfile
  43. fltool exist %3\tablet.exe
  44. if errorlevel 1 goto enderr
  45. del %3\tablet.exe
  46. goto end
  47. :errdir
  48. echo *************************************************************
  49. echo *                                                           *
  50. echo * Freelance Graphics is not installed in the directory: %3
  51. echo *                                                           *
  52. echo *************************************************************
  53. goto help
  54. :err1util
  55. echo *************************************************************
  56. echo *                                                           *
  57. echo * You must install this driver from the default drive.
  58. echo * If the Utilities disk is in drive A:, type:
  59. echo *          A:   Enter
  60. echo *                                                           *
  61. echo *************************************************************
  62. goto enderr
  63. :error
  64. echo *************************************************************
  65. echo *                                                           *
  66. echo *  Error occurred during installation of tablet driver      *
  67. echo *                                                           *
  68. echo *************************************************************
  69. goto enderr
  70. :help
  71. echo *************************************************************
  72. echo * 
  73. echo *  To use this batch file, enter "summatab" followed by the
  74. echo *  tablet identifier, the number of the communications port
  75. echo *  to which the tablet is attached, and the directory where
  76. echo *  Freelance Graphics is installed.
  77. echo *
  78. echo *  For example,
  79. echo *    To install:
  80. echo *      summatab 961 2 c:\fl
  81. echo *    To deinstall:
  82. echo *      summatab 0 0 c:\fl
  83. echo *
  84. echo *  Please check your Freelance Graphics manual for further information.
  85. echo *
  86. echo *************************************************************
  87. goto :enderr
  88. :end
  89. if %2 == 0 echo Summagraphics SummaSketch de-installation successful.
  90. if %2 == 1 echo Summagraphics SummaSketch installation successful.
  91. if %2 == 2 echo Summagraphics SummaSketch installation successful.
  92. :enderr
  93. echo on
  94.