home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / helpfile / picterm.zip / SETUP.BAT < prev   
DOS Batch File  |  1993-07-14  |  1KB  |  63 lines

  1. @ECHO OFF
  2. CLS
  3.  
  4. IF "%1" == "" GOTO NOPATH
  5.  
  6. :OK
  7. CLS
  8. ECHO.
  9. ECHO     This batch file will unzip the apropriate files to the approriate
  10. ECHO directories, then allow you to run Picterm.
  11. ECHO.
  12. ECHO     For further information please read the readme.1st file in this
  13. ECHO directory.
  14. ECHO.
  15. PAUSE
  16.  
  17. IF NOT EXIST %1\NUL MD %1
  18. PKUNZIP FILES.ZIP > NUL
  19. COPY *.EXE %1 > NUL
  20. COPY *.CFG %1 > NUL
  21. COPY *.DOC %1 > NUL
  22. COPY *.1ST %1 > NUL
  23. COPY *.SLT %1 > nul
  24.  
  25. DEL *.EXE > NUL
  26. DEL *.CFG > NUL
  27. DEL *.DOC > NUL
  28. DEL *.1ST > NUL
  29. DEL *.SLT > NUL
  30.  
  31. IF NOT EXIST %1\PICTERM.EXE GOTO ERROR
  32.  
  33. GOTO MESSAGE
  34.  
  35. :NOPATH
  36. ECHO.
  37. ECHO.
  38. ECHO     You need to specify a path on the command line of this batch program,
  39. ECHO please try again with something like this...
  40. ECHO.
  41. ECHO    SETUP C:\TELIX\PICTERM
  42. ECHO.
  43. ECHO note that there is no trailing backslash.
  44. ECHO.
  45. GOTO END
  46.  
  47. :MESSAGE
  48. CLS
  49. ECHO.
  50. ECHO     Everything should be ok. For more information on setting up Picterm,
  51. ECHO please read the doc file.
  52. ECHO.
  53. GOTO END
  54.  
  55. :ERROR
  56. CLS
  57. ECHO.
  58. ECHO     An error has occured, please unzip the archive FILES.ZIP manually and
  59. ECHO read the file PICTERM.DOC for further instructions.
  60. ECHO.
  61.  
  62. :END
  63.