home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / comm / robo20_b.zip / TESTFILE.BAT < prev    next >
DOS Batch File  |  1990-02-25  |  695b  |  38 lines

  1. ECHO OFF
  2. REM TESTFILE.BAT - Robocomm file testing batch file
  3. REM %1 = Filename (Including Path)
  4. REM %2 = Type of file (The file's extension)
  5. md ROBOTEMP>nul
  6. cd ROBOTEMP
  7. IF %2 == ZIP GOTO UNZIP
  8. IF %2 == LZH GOTO UNLZH
  9. IF %2 == ARC GOTO UNARC
  10. GOTO ERROR
  11. :UNZIP
  12. PKUNZIP %1
  13. GOTO DONE
  14. :UNARC
  15. PKUNPAK %1
  16. GOTO DONE
  17. :UNLZH
  18. LHARC x %1
  19. GOTO DONE
  20. :ERROR
  21. CLS
  22. ECHO %1 IS AN UNKNOWN FILE TYPE
  23. ECHO (You may want to edit your TESTFILE.BAT file)
  24. ECHO Parameter 1 was [%1]
  25. ECHO Parameter 2 was [%2]
  26. ECHO  
  27. pause
  28. GOTO END
  29. :DONE
  30. REM Use McAfee's viral scan to test the file for critters
  31. CLS
  32. SCAN *.* /A /nomem
  33. pause
  34. PROMPT Type EXIT to return to Robocomm$_$P$G
  35. %COMSPEC%
  36. :END
  37.  
  38.