home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
-
-
- REM Check if drive exists
- set drive=C:
- if not exist %DRIVE%\nul goto ddrive
- disksize %DRIVE% 4000000
- if not errorlevel 1 goto continue
-
- :ddrive
- set drive=D:
- if not exist %DRIVE%\nul goto edrive
- disksize %DRIVE% 4000000
- if not errorlevel 1 goto continue
-
- :edrive
- set drive=E:
- if not exist %DRIVE%\nul goto fdrive
- disksize %DRIVE% 4000000
- if not errorlevel 1 goto continue
-
- :fdrive
- set drive=F:
- if not exist %DRIVE%\nul goto nodrive
- disksize %DRIVE% 4000000
- if errorlevel 1 goto usage2
-
-
- :continue
- REM Checking for enough drive space.
- REM disksize %DRIVE% 4000000
- REM if errorlevel 1 goto usage2
-
- REM Checking for Proper Drive
- if not exist fuzzy100.zip goto usage3
-
- REM Creating Install Directory
- md %DRIVE%\games
- md %DRIVE%\games\fuzzy
- if not exist %DRIVE%\games\fuzzy\nul goto error1
-
- REM Installing UPDATE Software
- :install
- ..\..\demos\xcom\pkunzip -o -d fuzzy100 %DRIVE%\games\fuzzy
-
- Rem Checking for errors
- if errorlevel 1 goto error2
-
- goto end
-
- :usage
- cls
- echo You must supply the DRIVE you wish to install Fuzzy's World of Golf to.
- echo EXAMPLE: INSTALL C:
- goto EOF
-
- :usage2
- cls
- echo Fuzzy's World of Minature Space Golf 4 Megabytes of Hard drive
- echo space to install. Drive %DRIVE% doesn't have enough space.
- echo Please free up some space on the %DRIVE% Drive and try again.
- goto EOF
-
- :usage3
- cls
- echo This install must be run from the same DRIVE/DIRECTORY that the
- echo Fuzzy's Space Golf files are located in. Please change to that
- echo DRIVE/DIRECTORY and run INSTALL again.
- goto EOF
-
- :error1
- cls
- echo The install was unable to create the installation directory.
- echo This means that you do not have enough disk space or that you forgot
- echo to put a : on the drive letter to install to, or the installation
- echo directory already exists. If the directory %DRIVE%\GAMES\FUZZY already exists
- echo on your hard drive then use the -O command to overwrite the existing
- echo directory.
- echo EXAMPLE: INSTALL C: -O
- if "%2" == "-o" goto install
- if "%2" == "-O" goto install
- if "%2" == "o" goto install
- if "%2" == "O" goto install
- goto EOF
-
- :error2
- cls
- echo An Error has occured while installing the software, you may have
- echo a bad copy. Please try the install again, if it fails then get
- echo another copy of this update.
- goto EOF
-
-
- :nodrive
- cls
- echo Man! Where did you run this from???????????
- goto EOF
-
- :end
- cls
-
- echo Installation Complete!
-
-
- %DRIVE%
-
- cd \games\fuzzy
-
-
- echo type FUZZY to run the demonstration
-
- FUZZY
-
- :EOF
- set drive=
- pause
-