home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
ED
/
ED083A.ZIP
/
DS3D1.EXE
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-08-23
|
5KB
|
174 lines
echo off
if not .%1.==.. goto e
goto c
:e
if .%3.==.qqq. goto f
if .%3.==.QQQ. goto f
if .%1.==.zzz. goto d
if .%1.==.ZZZ. goto d
if not .%2.==.. goto a
goto b
:c
cls
echo WELCOME TO DEEP SPACE 3-D, VERSION 3.0
echo
echo Deep Space 3-D is distributed as two self-extracting archive files called
echo
echo DS3D1.EXE and DS3D2.EXE
echo
echo INSTALL.BAT is included in the DS3D1.EXE archive, but it may also have been
echo included as a separate file.
echo
echo Since DEEP SPACE 3-D is shareware, you may have received it in various forms.
echo If you got the program from a primary source (directly from David Chandler Co.
echo or from a Shareware Distributor) it came on two 360K disks or one higher
echo density disk, with INSTALL.BAT included externally. If you got it from a BBS
echo you probably received only the two archive files. If you received it from a
echo friend, you may have received it either way, or as a collection of loose files.
echo
echo If you did not receive the program in archive form neither you nor we know
echo what you have nor what condition it is in. Send $15 to David Chandler Co.,
echo P.O. Box 309, La Verne, CA 91750 for a clean copy of the unregistered program,
echo or send $79 for a registered program, or write for a brochure. The $15 is
echo applicable toward the registration price.
echo
pause
cls
echo
echo EXPLANATION
echo
echo Starting with Version 3.0, DEEP SPACE 3-D requires a hard drive. Installation
echo requires approximately 2.5 Megabytes of disk space. (Some of that space is
echo left free at the end of installation.)
echo
echo DEEP SPACE 3-D can be run with all files in a single directory, but this is
echo not recommended. As files are added by the user or created by the program
echo the directory can become quite cluttered. It is better to organize the files
echo into sub-directories.
echo
echo INSTALL.BAT will create the sub-directories you need and copy the files to the
echo correct directories.
echo
pause
cls
echo
echo INSTRUCTIONS
echo ------------------------------------------------------------------------------
echo CASE 1: If you are installing from floppy drive A: and you want to create a
echo base directory called DS3D on hard drive C:,
echo
echo Type: A: (Followed by a carriage return)
echo then type: INSTALL C: DS3D (Followed by a carriage return)
echo
echo (Follow the same pattern if you use a different floppy drive, a different hard
echo drive, and/or a different base directory name.)
echo
echo ------------------------------------------------------------------------------
echo CASE 2: If you got DS3D1.EXE, and DS3D2.EXE from a BBS, copy both files to
echo the directory you want to use as the base directory. Move to that directory.
echo Expand the archive files by typing their file names (without the .EXE), then:
echo
echo Type: INSTALL zzz (Followed by a carriage return)
echo
echo (This will create the appropriate sub-directories and move the files.)
echo ------------------------------------------------------------------------------
echo (Be sure you type a colon after the drive letter and include spaces as shown)
goto exit
:a
cls
md %1\%2
md %1\%2\dsfiles
md %1\%2\dsdata
md %1\%2\share
copy install.bat %1\%2\share
copy ds3d1.exe %1\%2
%1\%2\share\install %1 %2 qqq
:f
cls
echo
echo
echo
echo
echo If DS3D2.EXE is on a separate disk, insert the other disk now. Otherwise...
echo
echo
pause
copy ds3d2.exe %1\%2
%1
cd \%2
rem extract: local directories already made
ds3d1
echo
ds3d2
goto g
:b
rem extract and make local directories
cls
ds3d1
echo
ds3d2
:d
cls
rem make local directories without extracting
md dsfiles
md dsdata
md share
copy install.bat share
:g
copy *.cfl dsfiles
del *.cfl
copy category.dat dsfiles
del category.dat
copy SST* dsdata
del SST*
copy sac*.* dsdata
del sac*.*
copy ngcobjct.dat dsdata
del ngcobjct.dat
del lh*.*
copy ds3d1.exe share
if not errorlevel 1 goto j1
goto k1
:j1
del ds3d1.exe
:k1
copy ds3d2.exe share
if not errorlevel 1 goto j2
goto k2
:j2
del ds3d2.exe
:k2
cls
echo
echo
echo
echo
echo
echo
echo Installation is now complete
echo
if .%2.==.. goto h
echo The main program files are on: %1\%2
echo Star and NGC data files are on: %1\%2\dsdata
echo Files modified by the program are on: %1\%2\dsfiles
echo Files to share with other users are on: %1\%2\share
echo
goto k
:h
echo The main program files are on: [current directory]
echo Star and NGC data files are on: [current directory]\dsdata
echo Files modified by the program are on: [current directory]\dsfiles
echo Files to share with other users are on: [current directory]\share
echo
:k
echo To save space you may want to copy the SHARE subdirectory to floppy disks and
echo remove it from the hard drive. Please share the program in archive form only.
echo
echo Type DS3D to start the program.
echo
echo
echo
:exit