@echo off

rem -- Attempt to view contents of archive
ZFV %1

rem -- Check errorlevel on return from ZFV to see if the program recognized
rem -- the archive file's format
if errorlevel 1 goto TryAgain

rem -- If there was no errorlevel, then ZFV worked and we're done
goto TheEnd

:TryAgain
rem -- If ZFV couldn't deal with the file, use Vern Buerg's FV program to
rem -- produce a listing of the archive file's contents
fv %1 /B > pcbview.txt

:TheEnd
rem -- The End
