@echo off
>pcbview.txt
if %@ext[%1] == gif goto gif
if %@ext[%1] == zip goto zip
goto end

:gif
giftest %1 >pcbview.txt
goto end

:zip
ziptv -p1 %1
goto end

:end
