home *** CD-ROM | disk | FTP | other *** search
/ PC-Test Pro / PCTESTPRO.iso / disktool / cfg / entp / install.bat < prev    next >
Encoding:
DOS Batch File  |  1995-07-14  |  2.1 KB  |  63 lines

  1. :: CFG 2.43 - INSTALL.BAT
  2. :: Installation batch file for CFG, demonstrating the use of some of the
  3. :: program's commands.  This batch file can be run from any drive or
  4. :: directory you desire as long as the new CFG executable is in the path.
  5. ::
  6. :: Usage:  Install d:\path
  7. ::
  8.   @Echo Off
  9.   Echo Off
  10.   Cls
  11.   If Not Exist CFG.COM GoTo ERR1
  12.   If Not [%1]==[] GoTo 1
  13. :0  CFG0 is the path installing from
  14.   CFG Batch Path /@CFG0 /2 /Q
  15.   If [%CFG0%]==[] GoTo ERR0
  16.   CFG Cecho "Bright Yellow on Blue"What drive and directory do you want to install CFG to?~Example:  C:\DOS\UTIL~
  17.   CFG Input /@CFG1 /2; ASCII 13 10 13 10
  18.   If [%CFG1%]==[] GoTo ERR2
  19.   GoTo 2
  20. :1  CFG1 is the installation drive and directory
  21.   Set CFG1=%1
  22. :2  CFG2 is the installation drive
  23.   CFG DirExist %CFG1%
  24.   If Not ErrorLevel==1 GoTo ERR3
  25.   CFG FileDrive %CFG1% /@CFG2 /2/Q
  26.   Echo Copying CFG files to specified directory...
  27.   Copy %CFG0%\CFG.* %CFG1% > Nul
  28.   Copy %CFG0%\INSTALL.BAT %CFG1%\CFG.INS > Nul
  29.   Copy %CFG0%\README.CFG %CFG1% > Nul
  30.   Echo.
  31.   Echo Files copied.  Please read the README.CFG and CFG.NEW files
  32.   Echo for a list of the most recent changes.  A full list of changes
  33.   Echo is in the CFG.DOC file.
  34.   Echo.
  35.   Echo NOTE:  CFG.DOC and CFG.HLP are both accessed by the Help command and
  36.   Echo must be in the same directory as CFG.COM.
  37.   Echo.
  38.   Echo Thanks for using CFG.  I hope you find it useful.
  39.   %CFG2%
  40.   CD %CFG1%
  41.   GoTo END
  42. :ERR0
  43.   Echo CFG Install -- ERROR -- The CFG executable file found does not support
  44.   Echo                         the Batch command.
  45.   GoTo END
  46. :ERR1
  47.   Echo CFG Install -- ERROR -- This batch file must be run from the drive and
  48.   Echo                         directory the files are to be installed from.
  49.   Echo.
  50.   Echo                         Example:  Install C:\DOS\UTIL
  51.   GoTo END
  52. :ERR2
  53.   Echo CFG Install -- ERROR -- No installation directory specified.
  54.   GoTo END
  55. :ERR3
  56.   Echo CFG Install -- ERROR -- Specified installation directory does not exist:
  57.   Echo                         ▓▒░ %CFG1% ░▒▓
  58.   Echo.
  59.   Echo                         Example:  Install C:\DOS\UTIL
  60. :END
  61.   Set CFG0=
  62.   Set CFG1=
  63.   Set CFG2=