home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 166.START.BAT < prev    next >
DOS Batch File  |  1993-02-19  |  2KB  |  60 lines

  1. echo off
  2.  
  3. if exist hypgeo21.exe goto install
  4. if exist start.bat goto missing
  5. echo  
  6. echo The START procedure must be run directly from the diskette drive
  7. echo or hard-disk directory in which it is located.
  8. echo  
  9. echo For example, if you are installing HYPERGEO from a diskette
  10. echo in drive A, don't run A:START from a directory on another drive.
  11. echo Instead, you should first make the diskette drive the active drive
  12. echo and then run START, thus:
  13. echo  
  14. echo        A:
  15. echo        START
  16. echo  
  17. echo (If you're using the second diskette drive on your system,
  18. echo substitute B: for A: in the above directions.)
  19. goto done
  20.  
  21. :install
  22. set d=%1
  23. if "%d%" == ""  set d=C:\HYPERGEO
  24.  
  25. echo  
  26. echo            The installation directory is:  %d%
  27. echo  
  28.  
  29. hypgeo21 %d%
  30.  
  31. if errorlevel 1 goto error
  32. if not exist %d%\hypergeo.hlp goto done
  33. echo  
  34. echo The HYPERGEO program has been successfully installed.
  35. echo  
  36. echo See the file README.1ST in the installation directory for an
  37. echo overview of the program and directions for trying it out.
  38. goto done
  39.  
  40. :error
  41. echo  
  42. echo An error occurred during the installation of HYPERGEO.
  43. echo  
  44. echo Check to be sure that the drive and directory you are trying to
  45. echo install the program into were specified correctly and that there is
  46. echo sufficient free space on that device.  The command
  47. echo  
  48. echo        DIR  %d%
  49. echo  
  50. echo will show you the amount of free space on the installation drive.
  51. echo (HYPERGEO needs about 800K bytes of disk space.)
  52. goto done
  53.  
  54. :missing
  55. echo  
  56. echo The START procedure can't find the file HYPGEO21.EXE.  This file
  57. echo must be in the same directory as the START.BAT file itself.
  58.  
  59. :done
  60.