home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_GEN / PEO.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-02-08  |  1KB  |  35 lines

  1. @if "%1" == "%" goto errmsg
  2. @if "%2" == "%" goto errmsg
  3. @if "%1" == "a" goto errmsg2
  4. @if "%1" == "b" goto errmsg2
  5. md %1:\machy
  6. copy *.doc %1:\machy\*.*
  7. copy seo*.exe %1:\machy\*.*
  8. copy prepro.bat %1:\machy\*.*
  9. copy cbltdli.cbl %1:\machy\*.*
  10. copy seoxmsgs.dat %1:\machy\*.*
  11. md %1:\machy\%2
  12. md %1:\machy\%2\exs
  13. md %1:\machy\%2\copy
  14. md %1:\machy\%2\cobol
  15. copy peo.exe %1:\machy\%2\exs\*.*
  16. %1:
  17. cd %1:\machy
  18. @if exist seoexp00.exe goto itsokay
  19. @echo Warning: The installation was not successful!
  20. @echo You must change to the install drive before running install.bat
  21. @goto endit
  22. :errmsg
  23. @echo You must run install.bat with two command line parameters:
  24. @echo  1.  the target drive letter. DO NOT INCLUDE THE COLON (:)!
  25. @echo  2.  a one to eight byte name for your set of COBOL programs which will
  26. @echo      be used to create a sub directory of machy. machy is our working
  27. @echo      directory.
  28. @goto endit
  29. :errmsg2
  30. @echo You must specifiy a hard drive
  31. goto endit
  32. :itsokay
  33. @echo installation complete
  34. :endit
  35.