home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / pock46 / install.bat < prev    next >
DOS Batch File  |  1995-07-15  |  972b  |  50 lines

  1. echo off
  2. cls
  3. echo.
  4. echo     PocketD/PocketD Plus installation.  (Exit Windows before running)
  5. echo.
  6. echo     This will optionally install for both DOS and Windows
  7. D    /Yny/ /'//@t&RDo you want proceed with installation?'
  8. if errorlevel 2 goto ok
  9. echo     Install aborted...
  10. echo.
  11. goto exit2
  12.  
  13. :ok
  14.  
  15. if exist install.bat goto START
  16. echo ERROR! The INSTALL program must be run from the installation directory
  17. goto exit2
  18.  
  19. :START
  20.  
  21. D    /I[PATH=$l$2r$B;%PATH%//]~>NEWP.bat
  22. D    /Yny/ /'/@t&GOK to modify AUTOEXEC.BAT to include path?&w'
  23. if errorlevel 2 goto MODAUTO
  24. echo AUTOEXEC.BAT not modified
  25. goto WIN
  26.  
  27. :MODAUTO
  28. if exist c:\autoexec.bat goto CONT
  29. ECHO.
  30. ECHO C:\AUTOEXEC.BAT not found
  31. ECHO.
  32. goto WIN
  33.  
  34. :CONT
  35. type NEWP.BAT>>c:\autoexec.bat
  36.  
  37. :WIN
  38. D    /Yny/ /'/@t&WOK to install for Windows?&w'
  39. if errorlevel 2 goto WINOK
  40. echo.
  41. echo Windows installation skipped
  42. echo.
  43. goto exit
  44.  
  45. :WINOK
  46. WINSTALL POCKETDP.GRP POCKETD.ICO POCKETD.TXT
  47. :exit
  48. newp
  49. :exit2
  50.