home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Security
/
Security.zip
/
tbos707.zip
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-01-10
|
3KB
|
115 lines
@echo off
echo off
echo --- Thunderbyte Anti-Virus for OS2 installation ---
rem --- TbavOS2 install (c) Copyright @1996 ThunderBYTE ---
echo.
rem * Make sure that we can find the utilities in the current directory
if not exist TBAVOS2.EXE goto error1
rem * Make sure that the user specified a destination path
if %1X==X goto error2
rem * Make sure the target path exists or can be created
rem if exist %1\nul goto pathexists
md %1
if not exist %1\nul goto error3
:pathexists
rem * Make sure user did not type something like 'C:' :-)
if exist %1\CONFIG.SYS goto error5
echo Please read the License.Doc file. By using the TBAV package you
echo agree with our license agreement. You can print the License.Doc
echo file by typing the following command on the DOS command line:
echo Copy License.Doc Lpt1
echo Press Ctrl-C to abort this installation batch file, or
pause
rem * Copy the TBAV utilities if necessary
cls
echo Copying files. Please wait...
copy AGENTS.DOC %1>nul
copy APPNOTES.DOC %1>nul
copy ESASS.PGP %1>nul
copy INSTALL.CMD %1>nul
copy LICENSE.DOC %1>nul
copy NO_VSUM.DOC %1 >nul
copy REPORT.DOC %1>nul
copy ORDER.FRM %1>nul
copy ORDER.TXT %1>nul
copy TBAV.FAQ %1>nul
copy TBAVOS2.DLL %1>nul
copy TBAVOS2.EXE %1>nul
copy TBAVOS2.HLP %1>nul
copy TBAVOS2.LNG %1>nul
copy TBOS2NEW.706 %1>nul
copy TBOS2NEW.707 %1>nul
copy TBSCAN.SIG %1>nul
copy TBSCAN.ECI %1>nul
copy TBSETUP.DAT %1>nul
if exist TBKEY.EXE copy TBKEY.EXE %1>nul
if exist TBAV.KEY copy TBAV.KEY %1>nul
echo.
echo The Thunderbyte Anti-Virus utilities have been copied to the destination
echo directory. It is recommended to read the documentation of TBAV thoroughly
echo and to make a customized setup. One of the advantages of the Thunderbyte
echo Anti-Virus utilities is flexibility and the possibility to configure
echo them to suit your needs in an optimal way.
echo.
goto end
:error1
echo Error: Invalid program invocation!
echo.
echo Make sure that you invoke INSTALL.CMD in the directory where the
echo TBAV utilities can be found!
echo.
echo Example: if the TBAV utilities can be found on drive A:, you should type:
echo A: [enter]
echo INSTALL [path] [enter]
goto end
:error2
echo Error: No destination path specified!
echo.
echo You have to specify the destination path for the TBAV utilities!
echo Even if the utilities are already in the destination path.
echo.
echo Example:
echo If the TBAV utilities are or should be copied to C:\TBAV, please type:
echo INSTALL C:\TBAV
goto end
:error3
echo Error: Unable to creat destination directory %1
echo.
echo Make sure you enter an existing destination path or a path that can be created!
goto end
:error4
echo Error: Unable to copy files in directory %1
echo.
echo Disk full? Access denied?
goto end
:error5
echo Error: No target directory specified!
echo.
echo Make sure you enter a full destination path!
echo %1 is not sufficient!
echo.
echo Example:
echo If the TBAV utilities are or should be copied to C:\TBAV, please type:
echo INSTALL C:\TBAV
goto end
:flush
echo.
echo If you have a disk cache installed, wait a few seconds to allow the
echo cache to flush the buffers, and reboot...
:end