@echo offecho a=1.batecho b=2.bat:beginset/p n=if not defined n goto beginif %n%=a (1.bat) else if %n%==b (2.bat) else error&goto begin