home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- if not exist DEMOINST.exe goto error
- if !==%1! goto auto
- goto manual
-
- :ERROR
- cls
- echo.
- echo ----------------------------------------------------------------
- echo - ERROR
- echo -
- echo - You must type INSTALL from the DOS prompt of the drive
- echo - that contains the IBM C Set ++ Demo CD, (e.g. D: or E:)
- echo -
- echo - Please correct and try again.
- echo ----------------------------------------------------------------
- echo.
- goto exit
-
-
- :AUTO
- echo.
- echo .........................................................................
- echo : :
- echo : IBM C Set ++ Demo DOS Installation :
- echo : :
- echo : This demo requires 2.9 MB of free space on your hard disk. :
- echo : :
- echo : To install the Demo on C:\CSETDEMO, press any key now. :
- echo : :
- echo : To install on a drive other than C: :
- echo : 1. Press [CTRL] [C] and answer Y to "Terminate batch file?" :
- echo : 2. Type INSTALL X then press [ENTER] :
- echo : where: X is the letter of the desired drive :
- echo : DO NOT add a colon (:) to the drive letter. :
- echo : A \CSETDEMO directory is created automatically. :
- echo : :
- echo : example: INSTALL E - installs onto E:\CSETDEMO :
- echo : :
- echo :.......................................................................:
- echo.
- echo To install on C:\CSETDEMO,
- echo.
- pause
- cls
- echo.
- echo Now installing the IBM C Set ++ Demo on C:\CSETDEMO...
- echo.
- md c:\CSETDEMO
- echo on
- DEMOINST /eC:\CSETDEMO
- echo off
- if errorlevel 1 goto space
- cls
- c:
- cd\CSETDEMO
- goto end
-
- :MANUAL
- echo MANUAL YET
- echo %1
- if exist %1:\*.* goto ok
-
- :DRIVE
- echo.
- echo ------------------------------------------------------------
- echo - ERROR
- echo -
- echo - You have specified an invalid drive parameter (%1:).
- echo -
- echo - If you see two colons here (%1:), please
- echo - type INSTALL X without adding a colon.
- echo -
- echo - X is the letter of the desired drive
- echo -
- echo - Please correct and try again.
- echo ------------------------------------------------------------
- echo.
- goto exit
-
- :SPACE
- echo.
- echo --------------------------------------------------------------
- echo - ERROR
- echo -
- echo - There is insufficient space on the specified drive (%1:)
- echo -
- echo - -or- You have specified an invalid drive parameter.
- echo -
- echo - If you see two colons here (%1:), please
- echo - type INSTALL X without adding a colon.
- echo -
- echo - X is the letter of the desired drive
- echo -
- echo - Please correct and try again.
- echo --------------------------------------------------------------
- echo.
- goto exit
-
- :OK
- echo IN OFK O K OKO OK OK
- echo IN OK
- echo Now installing the IBM C Set ++ Demo on %1:\CSETDEMO
- md %1:\CSETDEMO
- echo on
- DEMOINST /e%1:\CSETDEMO
- echo off
- if errorlevel 1 goto space
- cls
- %1:
- cd\CSETDEMO
-
- :END
- cls
- echo.
- echo Installation is complete.
- echo.
- echo Type DEMO and press [ENTER] to view the IBM C Set ++ Demo
-
- :EXIT