home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
d
/
dem225a.zip
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1992-11-30
|
2KB
|
70 lines
@echo off
if .%1.==.. goto help
if .%2.==.. goto help
if not exist %1\MAIN.EXE goto help
goto install
:help
echo
echo To install the demo, type "INSTALL X: Y:" where X: is the source
echo drive (drive with the demo disk) and Y: is the destination (hard) drive.
echo For example, to install from a floppy disk in drive A to drive C, type:
echo
echo INSTALL A: C:
echo
echo If you are installing this demo from a directory on your hard drive
echo rather than from a floppy disk, specify the ENTIRE DIRECTORY NAME of
echo the directory where these installation files are located. For example,
echo if you unZipped a demo file obtained from a BBS into your "c:\telix\dl"
echo directory, the command you'd want to type is:
echo
echo INSTALL C:\TELIX\DL C:
echo
echo The install program will create a directory called \SLDEMO on the
echo destination drive, and install the demo there. Approximately 1 Megabyte
echo of hard disk space is required.
echo
goto exit
:install
%2
cd \
mkdir %2\sldemo >nul
if not exist %2\sldemo\nul goto help
cd sldemo
if exist bbs.exe goto reinstall
echo
echo Installing Searchlight Demo. Please Wait.
mkdir text >nul
mkdir subs >nul
mkdir menu >nul
%1\main >nul
cd text
%1\text >nul
cd ..\subs
%1\subs >nul
cd ..\menu
%1\menu >nul
cd ..
if not exist bbs.ovr goto freespace
if not exist strings.sys goto freespace
if not exist subs\bulletins.msg goto freespace
echo Searchlight Demo is installed. To begin, type 'DEMO'.
echo
goto exit
:reinstall
echo
echo You have already installed this demo. Please erase all the files
echo from the \SLDEMO directory before installing this demo again.
goto exit
:freespace
echo
echo All the files needed for this demo were not installed. Please free
echo some more space on your harddrive and install the demo again.
goto exit
:exit