home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
printer
/
piv101.arc
/
SETUP.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-05-17
|
5KB
|
104 lines
echo off
rem *** PIVOT! Installation Procedure ***
if not %1a==a goto num
cls
echo ┌───────────────────────────┐
echo ─────────│ PIVOT! Installation │─────────
echo └───────────────────────────┘
echo *
echo **** ERROR - No Disk Specified ****
echo .........................
echo The SETUP command must be followed by a drive letter, and if necessary
echo by a directory name. For example, to install PIVOT! on a formatted
echo floppy disk, place the PIVOT! disk in Drive A, the blank disk in drive
echo B, and use the command
echo SETUP b:
echo To install the program on drive C in a directory named PIVOT!, place
echo the PIVOT! disk in drive A, and use the command
echo SETUP C:\PIVOT!
echo :
echo No trailing backslash ......:
echo ---------------------------------------------------------------------
echo Please decide which installation you want to use and try again.
echo ---------------------------------------------------------------------
goto finals
:num
if exist PIVOT.exe goto insprog1
:numagn
cls
echo ┌───────────────────────────┐
echo ─────────│ PIVOT! Installation │─────────
echo └───────────────────────────┘
echo *
echo ** Error - PIVOT! files not Found **
echo *
echo The PIVOT! Files are not on the current logged drive.
ECHO Either place the diskette with the original PIVOT! files in the
echo default drive and press Y to continue, or press N to abort
echo the installation process !!!
echo *
yesno Continue
if not errorlevel=1 goto fin1
:insprog1
if not exist PIVOT.exe goto num
if not exist setup.bat goto numagn
copy setup.bat %1\setup.bat >nul
if not exist %1\setup.bat goto isnotdir
cls
echo ┌───────────────────────────┐
echo ─────────│ PIVOT! Installation │─────────
echo └───────────────────────────┘
echo *
echo Installing on: %1\
echo --------------------------------------
echo Copying PIVOT.EXE [Execution Module]
copy PIVOT.EXE %1\PIVOT.EXE >nul
echo Copying GCHAR.EXE [The Font Editor Module]
copy GCHAR.exe %1\GCHAR.EXE >nul
echo Copying the Font Files
copy *.TRP %1\*.TRP >nul
echo Copying the Configuration File
copy PIVOT.CFG %1\PIVOT.CFG >nul
echo *
if %2b==b goto thewks
goto copywks
:thewks
cls
echo ┌───────────────────────────┐
echo ─────────│ PIVOT! Installation │─────────
echo └───────────────────────────┘
echo *
echo Do you also want to copy the sample Worksheet file(s) to the
echo specified directory ?
echo Press Y to copy the files, or
echo Press N to exit to DOS.
yesno Select
if not errorlevel=1 goto fin
:copywks
echo *
echo Copying the sample file(s)
copy *.WKS %1\*.WKS >nul
goto fin
:fin1
echo *******************************************************
echo ***** Abnormal Termination - Working Copy might be incomplete ******
echo *******************************************************
goto finals
:isnotdir
echo ┌───────────────────────────┐
echo ─────────│ PIVOT! Installation │─────────
echo └───────────────────────────┘
echo *
echo Sub-Directory -- %1
echo The specified sub-directory DOES NOT exist or not specified correctly.
echo Please create it, use a different one, or respecify.
echo (Remember! No Trailing Backslash)
echo *
goto finals
:fin
echo *******************************************************
echo ***** Normal Termination - Working Copy Complete ******
echo *******************************************************
:finals