1@echo off 2set ext= 3set file= 4 5:loop 6@set arg=%1 7if "%arg%" == "" goto end 8if "%arg:~0,1%" == "+" goto next 9if "%arg%" == "-t" goto next 10if "%arg%" == "ds" goto ds 11if "%arg%" == "DS" goto ds 12if "%arg%" == "dlv" goto dlv 13if "%arg%" == "DLV" goto dlv 14if "%arg%" == "dnskey" goto dnskey 15if "%arg%" == "DNSKEY" goto dnskey 16set file=%arg% 17goto next 18 19:ds 20set ext=ds 21goto next 22 23:dlv 24set ext=dlv 25goto next 26 27:dnskey 28set ext=dnskey 29goto next 30 31:next 32shift 33goto loop 34 35:end 36 37set name=%file%.%ext%.db 38type %name% 39