home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR4 / WILD401.ZIP / EXAMPLES.ARJ / PKF.BAT next >
DOS Batch File  |  1990-09-21  |  1KB  |  35 lines

  1. @echo off
  2. if %1.==?. goto HELP
  3.  
  4. if %1.==. Wild pkzip *.ZIP -fo wild
  5. if %1.==. goto DONE
  6. if %1.==*. Wild pkzip *.ZIP -fo wild %2 %3 %4 %5 %6 %7 %8 %9
  7. if %1.==*. goto DONE
  8.  
  9. pkzip -fo^ %1 %2 %3 %4 %5 %6 %7 %8 %9
  10. :DONE
  11. if ErrorLevel 1 PKER
  12. goto END
  13.  
  14. :HELP
  15. echo.
  16. echo.======================================================================
  17. echo PKF.BAT - Haris Courouclis (CADMOS), 1990
  18. echo ----------------------------------------------------------------------
  19. echo FORMAT:  PKF 
  20. echo    or    PKF [PKZIPparameters] ZipFile [files..]
  21. echo   PKF calls PKZIP with -f and -o as well as any parameters you supply
  22. echo       and freshens files in ZipFile, and sets ZIP date to latest file.
  23. echo   With no parameters, all ZipFiles found on current dir are freshened.
  24. echo   If the first parameter is * then all ZipFiles found on current dir
  25. echo      are freshened with files specified in subsequent parameters.
  26. echo.
  27. echo EXAMPLE
  28. echo   PKF * -be: \BATCH\*.* \UTILS\*.*   will freshen all files in current
  29. echo      dir with files from \BATCH and \UTILS, using E: for the temp zip
  30. echo      file.
  31. echo.======================================================================
  32. echo.
  33.  
  34. :END
  35. echo.