home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT157.ZIP
/
XINSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-07-24
|
6KB
|
108 lines
@echo off
rem xinstall.bat - Install "DOS Extensions for Professionals" executables.
rem
rem Copyright 1991 John B. Allison
rem
cls
echo ╔═════════════════════════════════════════════════════════════════════════════╗
echo ║ XINSTALL installs executable files for "DOS Extensions for Professionals" ║
echo ║ on your system. ║
echo ║ ║
echo ║ XINSTALL must be run from the distribution disk. ║
echo ║ ║
echo ║ XINSTALL must be run with the Drive and Directory to which you want the ║
echo ║ executables copied as the first argument. ║
echo ║ ║
echo ║ For example: ║
echo ║ ║
echo ║ "A:> XINSTALL C:\UTIL" ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════════════════╝
pause
cls
if not %1x == x goto nexttest
echo ╔═════════════════════════════════════════════════════════════════════════════╗
echo ║ XINSTALL must be run with the Drive and Directory to which you want the ║
echo ║ executables copied as the first argument. ║
echo ║ ║
echo ║ For example: ║
echo ║ ║
echo ║ "A:> XINSTALL C:\UTIL" ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════════════════╝
goto exit
:nexttest
if exist diff.exe goto lookup
echo ╔═════════════════════════════════════════════════════════════════════════════╗
echo ║ Cannot find expected files. ║
echo ║ ║
echo ║ XINSTALL must be run from the distribution disk. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════════════════╝
goto exit
:lookup
rem
rem Apparently a simple check for existence of a directory does not work.
rem Try to copy a file to the new directory.
rem
copy diff.exe %1\diff.exe >nul
if exist %1\diff.exe goto okay >nul
echo ╔═════════════════════════════════════════════════════════════════════════════╗
echo ║ Unable to locate directory %1 ║
echo ║ ║
echo ║ This batch file will attempt to create the directory %1 ║
echo ║ unless you "<CTRL> C" and Terminate=Y now. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════════════════╝
pause
cls
rem
rem Try to make the directory
rem
mkdir %1 >nul
copy diff.exe %1\diff.exe >nul
if exist %1\diff.exe goto okay >nul
echo ╔═════════════════════════════════════════════════════════════════════════════╗
echo ║ Unable to create directory %1 ║
echo ║ ║
echo ║ Create the directory manually and re-execute XINSTALL.BAT to install ║
echo ║ "DOS Extensions for Professionals". ║
echo ║ ║
echo ║ Be sure you are executing this batch file from the distribution disk. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════════════════╝
goto exit
:okay
rem
rem Copy rest of executables.
rem
copy dump.exe %1 >nul
if not exist %1\dump.exe echo DUMP.EXE not copied.
copy search.exe %1 >nul
if not exist %1\search.exe echo SEARCH.EXE not copied.
copy split.exe %1 >nul
if not exist %1\split.exe echo SPLIT.EXE not copied.
copy sub.exe %1 >nul
if not exist %1\sub.exe echo SUB.EXE not copied.
copy xdel.exe %1 >nul
if not exist %1\XDEL.exe echo XDEL.EXE not copied.
copy xdir.exe %1 >nul
if not exist %1\XDIR.exe echo XDIR.EXE not copied.
copy xhelp.exe %1 >nul
if not exist %1\xhelp.exe echo XHELP.EXE not copied.
rem
rem Prepend path
rem
path=%1;%path%
echo ╔═════════════════════════════════════════════════════════════════════════════╗
echo ║ All executables copied except as noted above. ║
echo ║ ║
echo ║ Your path has been temporarily reset to include %1.
echo ║ ║
echo ║ You MUST include a PATH= statement in your AUTOEXEC.BAT file having the ║
echo ║ path %1 as a component if these utilities are to be universally
echo ║ available after reboot. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════════════════╝
:exit