home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / BF / BF034.ZIP / HINSTALL.BAT < prev    next >
DOS Batch File  |  1989-08-19  |  1KB  |  44 lines

  1. echo off
  2. if %2x == x goto instruct
  3. echo This installs the Nonprofit General Ledger program and documentation
  4. echo from a floppy disk in drive %1: to a hard disk, drive %2:.
  5. echo  
  6. echo If this is NOT what you wish to do, press the Ctrl key and the C key
  7. echo at the same time, and then type Y.  Otherwise
  8. pause
  9. echo  
  10. echo OK, here we go.  If you see error messages, enter %0 with
  11. echo no other parameters to see instructions and then try again.
  12. echo  
  13. echo First we'll make the directory %2:\NGL.  Don't worry if you see
  14. echo "Unable to create directory."  That means the directory already exists.
  15. echo  
  16. md %2:\NGL > nul
  17. echo  
  18. echo Now we'll extract the program and documentation from the archive file.
  19. %1:arce %1:ngl112 %2:\NGL
  20. if errorlevel 1 goto badarce
  21. goto goodarce
  22. :badarce
  23. echo  
  24. echo ERROR -- ARCHIVE EXTRACTION FAILED
  25. echo Enter %0 to see instructions and then try again.
  26. goto end
  27. :goodarce
  28. cd %2:\NGL
  29. %2:
  30. echo  
  31. echo Installation complete.  The program is on drive %2 in the subdirectory NGL.
  32. echo You are now in %2:\NGL.  Read the manual, NGL111.DOC.
  33. goto end
  34. :instruct
  35. echo  
  36. echo Oops -- you must enter two letters after %0.  Type letters only,
  37. echo no colons, and separate %0 and the letters with spaces.
  38. echo The first letter is the floppy disk drive you are installing FROM.
  39. echo The second letter is the hard disk you are installing TO.
  40. echo For instance, to install from drive A: to drive C:, Enter:
  41. echo  
  42. echo      %0 A C
  43. :end
  44.