home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / ZFV12.ZIP / PCBVIEW.BAT < prev    next >
DOS Batch File  |  1990-09-03  |  487b  |  20 lines

  1. @echo off
  2.  
  3. rem -- Attempt to view contents of archive
  4. ZFV %1
  5.  
  6. rem -- Check errorlevel on return from ZFV to see if the program recognized
  7. rem -- the archive file's format
  8. if errorlevel 1 goto TryAgain
  9.  
  10. rem -- If there was no errorlevel, then ZFV worked and we're done
  11. goto TheEnd
  12.  
  13. :TryAgain
  14. rem -- If ZFV couldn't deal with the file, use Vern Buerg's FV program to
  15. rem -- produce a listing of the archive file's contents
  16. fv %1 /B > pcbview.txt
  17.  
  18. :TheEnd
  19. rem -- The End
  20.