home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
fox
/
phonbase
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1991-10-20
|
4KB
|
110 lines
@echo off
echo off
cls
echo.
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ PhDbase 2.0 Installation │
echo └────────────────────────────────────────────────────────────────────────┘
echo This program will install PhDbase 2.0 into your FoxPro directory.
echo It will place the files PHDBASE.APP, PHDBASE.SET, PHDBASE.HLP,
echo PHDBASE.FPT, and PHSAMPLE.DBF directly into your FoxPro directory.
echo It will also create a subdirectory within your FoxPro directory
echo called PHDBASE (i.e. C:\FOXPRO2\PHDBASE\) which will contain
echo PhDbase's auxiliary documentation files (such as README.DOC).
echo.
echo If you are installing PhDbase from a floppy disk, you *MUST* be
echo within your FoxPro directory. Alternatively, you may specify the
echo FoxPro directory on the install command line (see below).
echo.
echo If you are installing a version of PhDbase that was compressed for
echo electronic distribution, you should uncompress all the files into a
echo temporary directory, make that the current directory, and then run
echo install, specifying the FoxPro directory WITH THE TRAILING BACKSLASH
echo on the install command line (for example, "A:INSTALL C:\FOXPRO2\").
echo Then you can delete the files from the temporary directory.
echo.
echo Press Ctrl-C now to abort the installation process, or press any
echo other key to continue...
pause >nul
cls
echo.
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ Checking for presence of FOXPRO*.EXE... │
echo └────────────────────────────────────────────────────────────────────────┘
if exist %1foxpro*.exe goto okay
if not .%1 == . goto specified
echo Can't find FOXPRO*.EXE in the current directory!
echo.
echo Please change directories to your FoxPro directory and then run
echo install again.
goto exit
:specified
echo Can't find FOXPRO*.EXE in %1!
echo.
echo Make sure your path specification includes the trailing backslash
echo and then run install again. Or change directories to your FoxPro
echo directory, and then run install again with no parameters.
goto exit
:okay
echo Found FOXPRO*.EXE...
rem
rem Set install drive to A:, B:, C:, or D:.
rem
if %0 == a:install goto adrive
if %0 == A:INSTALL goto adrive
if %0 == b:install goto bdrive
if %0 == B:INSTALL goto bdrive
if %0 == c:install goto cdrive
if %0 == C:INSTALL goto cdrive
if %0 == d:install goto ddrive
if %0 == D:INSTALL goto ddrive
goto skipdrive
:adrive
set %_drive=a:
goto skipdrive
:bdrive
set %_drive=b:
goto skipdrive
:cdrive
set %_drive=c:
goto skipdrive
:ddrive
set %_drive=d:
:skipdrive
echo.
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ Copying files to FoxPro directory... │
echo └────────────────────────────────────────────────────────────────────────┘
echo Copying PHDBASE.APP...
copy %_drive%phdbase.app %1 >nul
echo Copying PHDBASE.SET...
copy %_drive%phdbase.set %1 >nul
echo Copying PHDBASE.HLP...
copy %_drive%phdbase.hlp %1 >nul
echo Copying PHDBASE.FPT...
copy %_drive%phdbase.fpt %1 >nul
echo Copying PHSAMPLE.DBF...
copy %_drive%phsample.dbf %1 >nul
echo.
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ Copying files to PhDbase subdirectory... │
echo └────────────────────────────────────────────────────────────────────────┘
echo Creating PhDbase subdirectory...
if not exist %1phdbase\*.* md %1phdbase
echo Copying auxiliary files...
copy %_drive%*.* %1phdbase >nul
rem
rem Remove redundant files.
rem
if exist %1phdbase\phdbase.app del %1phdbase\phdbase.app >nul
if exist %1phdbase\phdbase.set del %1phdbase\phdbase.set >nul
if exist %1phdbase\phdbase.hlp del %1phdbase\phdbase.hlp >nul
if exist %1phdbase\phdbase.fpt del %1phdbase\phdbase.fpt >nul
if exist %1phdbase\phsample.dbf del %1phdbase\phsample.dbf >nul
rem
set %_drive=
rem
echo.
echo Installation done!
:exit