home *** CD-ROM | disk | FTP | other *** search
- Echo off
- IF x%1==x GOTO USAGE
- REM Batch file (c) 1990 Alan Jay
- REM This file will search any drive or multiple drives
- REM as requested. Default shows syntax.
- REM
- REM Usage fvmany c: d: e: f:
- REM
- REM will search drives C: through F: for viruses
- REM if a virus is found the program will stop
- REM
- REM Note that you can alter and modify the FINDVIRUS command
- REM line parameters as required.
- REM
- :LOOP
- FINDVIRUS /D=%1 /p=n /b=y /f=y /e=y
- IF ERRORLEVEL = 255 GOTO INT
- IF ERRORLEVEL = 3 GOTO PROBLEM
- IF ERRORLEVEL = 2 GOTO VIRUS
- IF ERRORLEVEL = 1 GOTO PROBLEM
- IF x%2==x GOTO CLEAR
- echo.
- echo. ** DRIVE %1 CLEAN **
- echo.
- SHIFT
- GOTO LOOP
- :USAGE
- echo.
- echo. Usage:
- echo.
- echo. FVMANY C: D: F: G:
- echo.
- echo. FVMANY list of drive letters.
- echo.
- echo.
- echo. This will check listed drives for
- echo. viruses.
- echo.
- GOTO EXIT1
- :INT
- echo.
- Echo. Findvirus interrupted by user.
- echo.
- Goto EXIT1
- :VIRUS
- echo.
- ECHO. Virus detected. Please call your PC Support person !!!
- echo.
- GOTO EXIT1
- :PROBLEM
- echo.
- ECHO. There has been some problem (NOT a virus) with Findvirus.
- ECHO. Please call your PC Support person
- echo.
- GOTO EXIT1
- :CLEAR
- echo.
- ECHO. Virus check completed - ALL CLEAR.
- echo.
- :EXIT1