@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
