home *** CD-ROM | disk | FTP | other *** search
/ The Disc (Australian) 2 / TheDiscIssue2.iso / demos / vpool / disc_int.bat < prev    next >
Encoding:
DOS Batch File  |  1995-07-11  |  2.5 KB  |  117 lines

  1. @echo off
  2. cls
  3.  
  4.  
  5. REM Check if drive exists
  6. set drive=C:
  7. if not exist %DRIVE%\nul goto ddrive
  8. disksize %DRIVE% 1000000 
  9. if not errorlevel 1 goto continue
  10.  
  11. :ddrive
  12. set drive=D:
  13. if not exist %DRIVE%\nul goto edrive
  14. disksize %DRIVE% 1000000 
  15. if not errorlevel 1 goto continue
  16.  
  17. :edrive
  18. set drive=E:
  19. if not exist %DRIVE%\nul goto fdrive
  20. disksize %DRIVE% 1000000 
  21. if not errorlevel 1 goto continue
  22.  
  23. :fdrive
  24. set drive=F:
  25. if not exist %DRIVE%\nul goto nodrive
  26. disksize %DRIVE% 1000000 
  27. if errorlevel 1 goto usage2
  28.  
  29.  
  30. :continue
  31. REM Checking for Proper Drive
  32. if not exist pool.exe goto usage3
  33.  
  34. REM Creating Install Directory
  35. md %DRIVE%\vpool
  36. if not exist %DRIVE%\vpool\nul goto error1
  37.  
  38. REM Installing UPDATE Software
  39. :install
  40. copy *.* %DRIVE%\vpool
  41.  
  42. Rem Checking for errors
  43. if errorlevel 1 goto error2
  44.  
  45. goto end
  46.  
  47. :usage
  48. cls
  49. echo You must supply the DRIVE you wish to install the Virtual Pool demo to.
  50. echo EXAMPLE:  INSTALL C:
  51. goto EOF
  52.  
  53. :usage2
  54. cls
  55. echo The Virtual Pool Demo Requires 1 Megabyte of Hard drive space to install.
  56. echo Drive %DRIVE% doesn't have enough space to install Virtual Pool.
  57. echo Please free up some space on the %DRIVE% Drive and try again.
  58. goto EOF
  59.  
  60. :usage3
  61. cls
  62. echo This install must be run from the same DRIVE/DIRECTORY that the 
  63. echo Virtual Pool Demo files are located in.  Please change to that
  64. echo DRIVE/DIRECTORY and run INSTALL again.
  65. goto EOF
  66.  
  67. :error1
  68. cls
  69. echo The install was unable to create the installation directory.
  70. echo This means that you do not have enough disk space or that you forgot
  71. echo to put a : on the drive letter to install to, or the installation
  72. echo directory already exists.  If the directory %DRIVE%\VPOOL already exists
  73. echo on your hard drive then use the -O command to overwrite the existing
  74. echo directory.
  75. echo EXAMPLE:  INSTALL C: -O
  76. if "%2" == "-o" goto install
  77. if "%2" == "-O" goto install
  78. if "%2" == "o" goto install
  79. if "%2" == "O" goto install
  80. goto EOF
  81.  
  82. :error2
  83. cls
  84. echo An Error has occured while installing the software, you may have
  85. echo a bad copy.  Please try the install again, if it fails then get
  86. echo another copy of this update.
  87. goto EOF
  88.  
  89.  
  90. :nodrive
  91. cls
  92. @echo Install from the DOS prompt instead!!!!
  93. @echo Change to the following directory: \demos\vpool
  94. @echo Copy the contents of this directory to a directory on your Harddrive
  95. @echo and then type POOL
  96. @pause
  97. goto EOF
  98.  
  99. :end
  100. cls
  101.  
  102. echo Installation Complete!
  103.  
  104.  
  105. %DRIVE%
  106.  
  107. cd \vpool
  108.  
  109.  
  110. echo type POOL to run the demonstration 
  111.  
  112. pool
  113.  
  114. :EOF
  115. set drive=
  116. pause
  117.