home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- REM TESTFILE.BAT - Robocomm file testing batch file
- REM %1 = Filename (Including Path)
- REM %2 = Type of file (The file's extension)
- md ROBOTEMP>nul
- cd ROBOTEMP
- IF %2 == ZIP GOTO UNZIP
- IF %2 == LZH GOTO UNLZH
- IF %2 == ARC GOTO UNARC
- GOTO ERROR
- :UNZIP
- PKUNZIP %1
- GOTO DONE
- :UNARC
- PKUNPAK %1
- GOTO DONE
- :UNLZH
- LHARC x %1
- GOTO DONE
- :ERROR
- CLS
- ECHO %1 IS AN UNKNOWN FILE TYPE
- ECHO (You may want to edit your TESTFILE.BAT file)
- ECHO Parameter 1 was [%1]
- ECHO Parameter 2 was [%2]
- ECHO
- pause
- GOTO END
- :DONE
- REM Use McAfee's viral scan to test the file for critters
- CLS
- SCAN *.* /A /nomem
- pause
- PROMPT Type EXIT to return to Robocomm$_$P$G
- %COMSPEC%
- :END
-
-