home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
ams400.zip
/
AMS400.EXE
/
INSTALL.BAT
< prev
Wrap
DOS Batch File
|
1992-01-30
|
4KB
|
162 lines
@echo off
if A==%1 goto doit
if B==%1 goto doit
if C==%1 goto doit
if D==%1 goto doit
if E==%1 goto doit
if F==%1 goto doit
if G==%1 goto doit
if H==%1 goto doit
if I==%1 goto doit
if J==%1 goto doit
if K==%1 goto doit
if L==%1 goto doit
if M==%1 goto doit
if N==%1 goto doit
if O==%1 goto doit
if P==%1 goto doit
if Q==%1 goto doit
if R==%1 goto doit
if S==%1 goto doit
if T==%1 goto doit
if U==%1 goto doit
if V==%1 goto doit
if W==%1 goto doit
if X==%1 goto doit
if Y==%1 goto doit
if Z==%1 goto doit
if a==%1 goto doit
if b==%1 goto doit
if c==%1 goto doit
if d==%1 goto doit
if e==%1 goto doit
if g==%1 goto doit
if h==%1 goto doit
if i==%1 goto doit
if j==%1 goto doit
if k==%1 goto doit
if l==%1 goto doit
if m==%1 goto doit
if n==%1 goto doit
if o==%1 goto doit
if p==%1 goto doit
if q==%1 goto doit
if r==%1 goto doit
if s==%1 goto doit
if t==%1 goto doit
if u==%1 goto doit
if v==%1 goto doit
if w==%1 goto doit
if x==%1 goto doit
if y==%1 goto doit
if z==%1 goto doit
goto goof1
:doit
if exist %1:\ams\amsfhhhh.dbf goto goof2
if exist %1:\amsfaaaa.dbf goto goof3
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO Welcome to the Action Management System!
ECHO.
ECHO This batch file installs the Action Management System. It will create
ECHO a directory, \AMS, on disk drive %1 which you have designated. It will then
ECHO install the program files in the new directory. A batch file named AMS.BAT
ECHO will be placed in the root directory to start AMS. Finally it will start
ECHO AMS and ask a few questions to configure the program for your computer
ECHO system and then enter the AMS program. The AMS program may be started from
ECHO the DOS prompt by typing the following:
ECHO.
ECHO. AMS
ECHO.
ECHO If you want to terminate the installation process press (Ctrl) and (C) to
ECHO exit to DOS otherwise press any other key to continue.
ECHO.
ECHO.
ECHO.
PAUSE
CLS
ECHO.
ECHO.
ECHO THE ACTION MANAGEMENT SYSTEM IS BEING INSTALLED.
@ REM ---Installation routine
md %1:\ams
copy ams.exe %1:\ams
copy amsf.dbf %1:\ams\amsfaaaa.dbf
copy amsdemo?.* %1:\ams
copy amszap.bat %1:\ams
copy ams.bat %1:\
%1:
cd %1:\ams
ams
cd \
cls
ECHO.
ECHO.
ECHO THE ACTION MANAGEMENT SYSTEM HAS BEEN SUCCESSFULLY INSTALLED.
goto end
@ REM ---Goof 1 - No Target drive designated
:goof1
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO This batch file installs the Action Management System. To start the
ECHO installation process you must designate a drive into which AMS will be
ECHO installed. This is accomplished by entering the install command followed
ECHO by the letter designating the drive into which AMS to to be installed.
ECHO To install AMS on drive C and the installation enter the following
ECHO command at the DOS prompt:
ECHO.
ECHO INSTALL C
ECHO.
ECHO.
PAUSE
CLS
goto end
@ REM ---Goof 2 - AMS already installed on target
:goof2
cls
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO Disk drive %1 was designated as the drive onto which AMS is to be
ECHO install however AMS is already installed on %1 drive. Select another drive
ECHO or erase the AMS files on drive %1 and start the install program again.
ECHO as follows:
ECHO.
ECHO.
ECHO.
PAUSE
CLS
goto end
@ REM ---Goof 3 - AMS installation diskette designated as the target
:goof3
CLS
ECHO.
ECHO ACTION MANAGEMENT SYSTEM INSTALLATION
ECHO.
ECHO.
ECHO.
ECHO Disk drive %1 was designated as the drive onto which AMS is to be
ECHO installed however this contains the INSTALLATION FILES. Select another
ECHO drive other then drive %1 and start the installation program again.
ECHO.
ECHO If AMS is being installed from files on a hard disk and the hard disk
ECHO is also the target the installation files may not be placed in the root
ECHO directory. Instead create any directory other then \AMS, move the files
ECHO into that directory and start installation from that directory.
ECHO.
ECHO.
PAUSE
CLS
goto end
:end
@echo on