home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / COMPRESS / CVT_ZIP1.ZIP / CVT-ZIP.BAT < prev    next >
Encoding:
DOS Batch File  |  1989-04-24  |  889 b   |  35 lines

  1. @echo off
  2. :START
  3.   if not exist temp.$$$\nul md temp.$$$
  4.   if not exist temp.$$$\*.* goto READY
  5.   echo y | del temp.$$$\*.* > nul
  6. :READY
  7.   if exist *.zip ren *.zip *.z$p
  8. :RUN
  9.   if exist *.z!p ren *.z!p *.zip
  10.   set arctype=
  11.   if exist *.zoo set arctype=ZOO
  12.   if exist *.z$p set arctype=Z$P
  13.   if exist *.pak set arctype=PAK
  14.   if exist *.md set arctype=MD
  15.   if exist *.lzh set arctype=LZH
  16.   if exist *.lbr set arctype=LBR
  17.   if exist *.arc set arctype=ARC
  18.   if exist *.?q? set arctype=?Q?
  19.   if "%arctype%" == "" goto DONE
  20.   for %%f in (*.%arctype%) do call CVT-ZIP! %%f
  21.   goto RUN
  22. :DONE
  23.   rd temp.$$$
  24.   echo.
  25.   if not exist *.zip goto NOZIP
  26.   echo ■ Finished converting the files.
  27.   if not exist \bad.$$$\nul goto END
  28.   echo.
  29.   echo ■ Check the BAD.$$$ subdirectory for errors!
  30.   goto END
  31. :NOZIP
  32.   echo ■ There were no archives to convert!
  33. :END
  34. echo.
  35.