@echo off >pcbview.txt if %@ext[%1] == gif goto gif if %@ext[%1] == zip goto zip goto end rem -- It would be really nice if CDC would pass the com port number rem -- on the command line to PCBVIEW.BAT and PCBTEST.BAT, but until rem -- they do, you need to put the correct port number after the /P:x rem -- parameter. :gif giftest %1 /p:1 goto end :zip ziptv -p1 %1 goto end :end