home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
windows
/
win31
/
dcsdemo.arj
/
DOSSETUP.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-09-05
|
3KB
|
130 lines
@echo off
rem This dossetup.bat file copies the Defect Control System demonstration
rem software from the first disk drive specified to the second disk drive
rem specified.
rem
rem For example, if you have one floppy disk drive named A: and one hard
rem disk drive named C:, you may install the demo onto the hard disk
rem drive by the inserting the disk into drive A:, and typing the command:
rem
rem a:dossetup A: C:
rem
if "%2" == "" goto err
if "%1" == "%2" goto err
if not exist %1\roirpro.ex$ goto baddisk
rem Check for VGA display
%1\vgacheck
if errorlevel 1 goto freespace
echo.
echo The Defect Control System demo requires a VGA display.
echo Your system does not meet this requirement.
echo.
echo Would you like to continue? (Enter Y or N)
%1\reply
if errorlevel 121 if not errorlevel 122 goto freespace
if errorlevel 89 if not errorlevel 90 goto freespace
echo.
echo DOSSETUP is exiting now...
echo.
goto end
:freespace
rem Check for available disk space
%1\dskspace %2 4096
if not errorlevel 2 goto checkfree
echo.
echo %2 is not a valid drive.
goto err
:checkfree
if not errorlevel 1 goto start
echo.
echo Drive %2 has insufficient disk space for the demo.
echo 4 Megabytes are required.
echo.
echo DOSSETUP is exiting now...
echo.
goto end
:start
rem this test does not work on a Novell drive -- bwp
rem if not exist %2\edgedemo\nul mkdir %2\edgedemo
if not exist %2\edgedemo\demo.bat mkdir %2\edgedemo
copy %1\demo.bat %2\edgedemo\demo.bat
rem Decompress the demo files
call %1\compress %1\roirpro.ex$ %2\edgedemo\roirpro.exe -d
call %1\compress %1\romystro.ex$ %2\edgedemo\romystro.exe -d
call %1\compress %1\demo.df$ %2\edgedemo\demo.dfl -d
rem I commented out the cls so users can
rem see error messages from compress -- bwp
rem cls
echo.
echo.
echo The installation of the Defect Control System demo is complete.
echo.
echo.
echo Would you like to run the demo now? (Enter Y or N)
echo.
%1\reply
if errorlevel 121 if not errorlevel 122 goto runit
if errorlevel 89 if not errorlevel 90 goto runit
goto view
:runit
%2
cd \edgedemo
call demo
goto view
:err
echo.
echo ERROR: YOU ARE NOT USING DOSSETUP PROPERLY.
echo.
echo The dossetup command copies the Demo Software from the first disk drive
echo specified to the second disk drive specified.
echo.
echo For example, if you have one floppy disk drive named A:, and one disk
echo disk drive named C:, you may install the Demo onto the hard disk drive
echo by inserting the floppy disk into drive A:, and typing the command:
echo.
echo A:\dossetup A: C:
echo.
echo DOSSETUP is exiting now...
echo.
goto end
:baddisk
echo.
echo The Demonstration Disk floppy is not in the drive you specified.
echo.
echo Correct the problem and rerun DOSSETUP.
echo.
echo DOSSETUP is exiting now...
echo.
goto end
:view
cls
echo.
echo Instructions for viewing the demo of Defect Control System:
echo.
echo To run the demo connect to the edgedemo directory and type in demo.
echo.
echo For example, if you installed the demo onto your %2 drive, type the
echo commands:
echo.
echo %2
echo cd \edgedemo
echo demo
echo.
goto end
:end