home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR4 / WILD401.ZIP / EXAMPLES.ARJ / PKT.BAT < prev    next >
DOS Batch File  |  1991-03-17  |  1KB  |  43 lines

  1. @echo off
  2. if '%1'=='?' goto HELP
  3.  
  4. if '%1'=='' goto WILD
  5. if '%1'=='*' goto WILD
  6. if '%1'=='/p' if %2==* goto WILD
  7. if '%1'=='/P' if %2==* goto WILD
  8.  
  9. if '%1'=='/p' pkunzip -t %2 %3 %4 %5 %6 %7 %8 %9 | more
  10. if '%1'=='/p' goto END
  11. if '%1'=='/P' pkunzip -t %2 %3 %4 %5 %6 %7 %8 %9 | more
  12. if '%1'=='/P' goto END
  13. pkunzip -t %1 %2 %3 %4 %5 %6 %7 %8 %9
  14. goto END
  15.  
  16. :WILD
  17. if '%1'=='/p' Wild /ip pkunzip *.ZIP -t wild %3 %4 %5 %6 %7 %8 %9 = more
  18. if '%1'=='/p' goto END
  19. if '%1'=='/P' Wild /ip pkunzip *.ZIP -t wild %3 %4 %5 %6 %7 %8 %9 = more
  20. if '%1'=='/P' goto END
  21. Wild /ip pkunzip *.ZIP -t wild %2 %3 %4 %5 %6 %7 %8 %9
  22. goto END
  23.  
  24. :HELP
  25. echo.
  26. echo.======================================================================
  27. echo PKT.BAT - Haris Courouclis (CADMOS), 1990
  28. echo ----------------------------------------------------------------------
  29. echo FORMAT:  PKT [/p] ZipFile [filespec..]
  30. echo     or   PKT [?]
  31. echo   PKT calls PKUNZIP with -t to test ZipFile intergrity.
  32. echo   A ZIP file name is expected, or * when all ZIP files in current dir
  33. echo      are tested.
  34. echo   When filespec is supplied, only files specified are tested within
  35. echo      the ZIP file.
  36. echo   With /p output for each ZIP file is filtered to MORE
  37. echo   With ? or no parameters, this HELP screen appears.
  38. echo.======================================================================
  39. echo.
  40.  
  41. :END
  42. echo.
  43.