if x%1 == x? goto d
if x%1 == x goto a
goto b
:d
dir c:\log\*.*
goto fin
:a 
list c:\log\main.log
goto fin
:b
list c:\log\%1
:fin
