home *** CD-ROM | disk | FTP | other *** search
- :: CFG 2.43 - INSTALL.BAT
- :: Installation batch file for CFG, demonstrating the use of some of the
- :: program's commands. This batch file can be run from any drive or
- :: directory you desire as long as the new CFG executable is in the path.
- ::
- :: Usage: Install d:\path
- ::
- @Echo Off
- Echo Off
- Cls
- If Not Exist CFG.COM GoTo ERR1
- If Not [%1]==[] GoTo 1
- :0 CFG0 is the path installing from
- CFG Batch Path /@CFG0 /2 /Q
- If [%CFG0%]==[] GoTo ERR0
- CFG Cecho "Bright Yellow on Blue"What drive and directory do you want to install CFG to?~Example: C:\DOS\UTIL~
- CFG Input /@CFG1 /2; ASCII 13 10 13 10
- If [%CFG1%]==[] GoTo ERR2
- GoTo 2
- :1 CFG1 is the installation drive and directory
- Set CFG1=%1
- :2 CFG2 is the installation drive
- CFG DirExist %CFG1%
- If Not ErrorLevel==1 GoTo ERR3
- CFG FileDrive %CFG1% /@CFG2 /2/Q
- Echo Copying CFG files to specified directory...
- Copy %CFG0%\CFG.* %CFG1% > Nul
- Copy %CFG0%\INSTALL.BAT %CFG1%\CFG.INS > Nul
- Copy %CFG0%\README.CFG %CFG1% > Nul
- Echo.
- Echo Files copied. Please read the README.CFG and CFG.NEW files
- Echo for a list of the most recent changes. A full list of changes
- Echo is in the CFG.DOC file.
- Echo.
- Echo NOTE: CFG.DOC and CFG.HLP are both accessed by the Help command and
- Echo must be in the same directory as CFG.COM.
- Echo.
- Echo Thanks for using CFG. I hope you find it useful.
- %CFG2%
- CD %CFG1%
- GoTo END
- :ERR0
- Echo CFG Install -- ERROR -- The CFG executable file found does not support
- Echo the Batch command.
- GoTo END
- :ERR1
- Echo CFG Install -- ERROR -- This batch file must be run from the drive and
- Echo directory the files are to be installed from.
- Echo.
- Echo Example: Install C:\DOS\UTIL
- GoTo END
- :ERR2
- Echo CFG Install -- ERROR -- No installation directory specified.
- GoTo END
- :ERR3
- Echo CFG Install -- ERROR -- Specified installation directory does not exist:
- Echo ▓▒░ %CFG1% ░▒▓
- Echo.
- Echo Example: Install C:\DOS\UTIL
- :END
- Set CFG0=
- Set CFG1=
- Set CFG2=