home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
67.img
/
MICROCAP.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-06-15
|
3KB
|
106 lines
echo off
cls
if "%1" == "" goto err1
if "%2" == "" goto err1
if "%1" == "%2" goto err2
if "%2" == "B:" goto floppy
if "%2" == "b:" goto floppy
if "%2" == "A:" goto floppy
if "%2" == "a:" goto floppy
:harddisk
if not exist %2\mc2.exe md %2
cd %2
if not exist %2\data\library.std md %2\data
cls
echo MICRO-CAP II Student Version Hard Disk installation.
echo copyright (c) 1986,87,88 Spectrum Software.
echo
if not exist %1mc2.exe goto err3
echo Copying MICRO-CAP II program files...
copy %1*.* %2
cls
if not exist %1\data\library.std goto err4
echo Copying MICRO-CAP II Data and Library files...
copy %1\data\*.* %2\data
btest %2
erase %2\btest.exe
goto end
:floppy
cls
echo MICRO-CAP II Student Version Floppy Disk installation.
echo
:FloppyA
echo Insert formatted working Program Disk in Drive %2
echo
pause
if not exist %1mc2.exe goto FloppyA
echo
echo Copying MICRO-CAP II program files...
copy %1*.* %2
btest %2
erase %2\btest.exe
:FloppyB
echo
echo Insert formatted working Data Disk in Drive %2 or
echo press any key to put data files on program disk.
echo
pause
if not exist %1\data\library.std goto FloppyB
echo
echo Copying MICRO-CAP II Data and Library files...
copy %1\data\*.* %2
goto floppyEnd
:err1
cls
echo Source/Target Drive(s) not specified.
echo ╔══════════════════════════════════════════════════════════╗
echo ║ MICRO-CAP II Student Version installation batch file ║
echo ║ ║
echo ║ To Install, log on to the drive containing ║
echo ║ the Program diskette and type: INSTALL from: to: ║
echo ║ where: ║
echo ║ "from:" is the floppy drive letter of the ║
echo ║ MICRO-CAP II Program diskette. ║
echo ║ "to:" is the drive letter and pathname where the ║
echo ║ MICRO-CAP II programs will be installed. ║
echo ║ For example, INSTALL A: C:\MC2 ║
echo ║ ║
echo ║ If you are installing on a two-drive system: ║
echo ║ Place original Program Disk in Drive A and a formatted ║
echo ║ disk without system files in Drive B, type: INSTALL A: B:║
echo ╚══════════════════════════════════════════════════════════╝
echo
goto finish
:err2
echo You cannot install on the same drive.
goto finish
:err3
echo Error... Cannot file MC2 program files on %1
goto finish
:err4
echo Error... Cannot file Library files on %1\data
goto finish
:floppyEnd
cls
echo
echo Be sure to copy the file, "COMMAND.COM" from your
echo DOS diskette onto your working Program Disk.
:end
echo
echo Installation completed successfully.
:finish
echo on