home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / busi / pcjudy.zip / INSTALLJ.BAT next >
DOS Batch File  |  1990-07-10  |  4KB  |  117 lines

  1. echo off
  2. rem JUDY Installation Batch Job -- copyright InterFact Software, 1990
  3. rem
  4. if %1z == z goto message
  5. rem
  6. echo       ╔════════════════════════════════════════════════╗
  7. echo       ║          JUDY INSTALLATION BATCH JOB           ║
  8. echo       ║ This batch job will copy all necessary files   ║
  9. echo       ║ from the distribution diskette in the current  ║
  10. echo       ║ drive to the destination drive and directory   ║
  11. echo       ║ you have indicated.                            ║
  12. echo       ║ If you already have JUDY files in the target   ║
  13. echo       ║ directory, this batch job will overwrite them. ║
  14. echo       ║ Any CALENDAR, ADDRESS, EXPENSES & IDEA files,  ║
  15. echo       ║ however, will remain untouched.                ║
  16. echo       ║ If this is not what you want, hit Ctrl-C now   ║
  17. echo       ║ and terminate this batch job.                  ║
  18. echo       ║ Otherwise, to install JUDY press any key...    ║
  19. echo       ╚════════════════════════════════════════════════╝
  20. pause>nul
  21. echo Making Directory %1...
  22. md %1
  23. if exist judyk.com goto dojudy
  24. echo                       ERROR
  25. echo      JUDYK.COM not found on distribution diskette.
  26. echo     Installation aborted.  Check disk and try again.
  27. goto done
  28. :dojudy
  29. echo Copying JudyK.com...
  30. copy judyk.com %1 >nul
  31. rem
  32. if exist jk.com goto dojk
  33. echo                       ERROR
  34. echo        JK.COM not found on distribution diskette.
  35. echo     Installation aborted.  Check disk and try again.
  36. goto done
  37. :dojk
  38. echo Copying JK.com...
  39. copy jk.com %1 >nul
  40. rem
  41. if exist phone.exe goto dophone
  42. echo                       ERROR
  43. echo      PHONE.EXE not found on distribution diskette.
  44. echo     Installation aborted.  Check disk and try again.
  45. goto done
  46. :dophone
  47. echo Copying Phone.exe...
  48. copy phone.exe %1 >nul
  49. rem
  50. if exist judy.hlp goto dohelp
  51. echo                       ERROR
  52. echo       JUDY.HLP not found on distribution diskette.
  53. echo     Installation aborted.  Check disk and try again.
  54. goto done
  55. :dohelp
  56. echo Copying Judy.hlp...
  57. copy judy.hlp %1 >nul
  58. rem
  59. if exist judy.doc goto dodoc
  60. echo                       ERROR
  61. echo       JUDY.DOC not found on distribution diskette.
  62. echo     Installation aborted.  Check disk and try again.
  63. goto done
  64. :dodoc
  65. echo Copying Judy.doc...
  66. copy judy.doc %1 >nul
  67. rem
  68. if exist judy.bat goto dobat
  69. echo                       ERROR
  70. echo       JUDY.BAT not found on distribution diskette.
  71. echo     Installation aborted.  Check disk and try again.
  72. goto done
  73. :dobat
  74. echo Copying Judy.bat...
  75. copy judy.bat %1 >nul
  76. rem
  77. rem
  78. if not exist %1\judyk.com goto whoops
  79. if not exist %1\jk.com goto whoops
  80. if not exist %1\judy.hlp goto whoops
  81. if not exist %1\judy.doc goto whoops
  82. if not exist %1\phone.exe goto whoops
  83. if not exist %1\judy.bat goto whoops
  84. rem
  85. rem
  86. echo.
  87. echo All files copied.
  88. echo If you had any "Invalid Directory" messages, check your syntax
  89. echo and try again.  Otherwise, installation was successful!  Please remove
  90. echo diskette and refer to documentation to configure JUDY for your system.
  91. echo See section on "Running JudyK the First Time." 
  92. goto done
  93. :message
  94. echo       ╔════════════════════════════════════════════════╗
  95. echo       ║                 SYNTAX ERROR                   ║
  96. echo       ║ INSTALLJ needs a destination path, including   ║
  97. echo       ║ both the drive and the directory. First change ║
  98. echo       ║ to the drive with the distribution diskette.   ║
  99. echo       ║ Then type INSTALLJ followed by the drive and   ║
  100. echo       ║ directory where you want JUDY to reside.  For  ║
  101. echo       ║ example, to install JUDY in a \JUDY directory  ║
  102. echo       ║ on the C: drive, type                          ║
  103. echo       ║                                                ║
  104. echo       ║         INSTALLJ c:\JUDY                       ║
  105. echo       ║                                                ║
  106. echo       ╚════════════════════════════════════════════════╝
  107. goto done
  108. :whoops
  109. echo       ╔════════════════════════════════════════════════╗
  110. echo       ║                    ERROR                       ║
  111. echo       ║      A file was not properly transferred.      ║
  112. echo       ║   Please check target pathname and try again.  ║
  113. echo       ╚════════════════════════════════════════════════╝
  114. goto done
  115. :done
  116. echo.
  117.