home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- echo Calc(DB) installation
- if %1. == . goto usage
- if %2. == . goto usage
-
- if not exist %1calc(db).exe goto badsrc
- if exist %2\nul goto next
- md %2
- if not exist %2\nul goto baddest
-
- :next
- echo .
- echo Installing Calc(DB) from %1 to %2...
- copy %1read.me %2
- %1calc(db) %2
- goto done
-
- :ierror
- echo Error installing Calc(DB)!
- goto outahere
-
- :badsrc
- echo Bad source drive! (Where are you running this from?!?)
- goto usage
-
- :baddest
- echo Bad target directory!
- goto usage
-
- :usage
- echo .
- echo Usage:
- echo {source drive}:INSTALL {source drive}: {target directory}
- echo .
- echo where
- echo {source drive} = Drive containing Calc(DB) diskette.
- echo {target directory} = Directory on current drive where Calc(DB)
- echo is to be installed. If the directory does
- echo not exist it will be created.
- echo .
- echo EXAMPLE: A:INSTALL A: C:\CALCDB
- echo .
- echo This will install Calc(DB) from the diskette in drive A: to the
- echo CALCDB directory on drive C:.
- goto outahere
-
- :done
- echo Done!
-
- :outahere
-