@echo off if {%1} equ {} ( rem find /v "" type con ) else if {%1} equ {-} ( rem find /v "" type con ) else ( if {%1} neq {} ( type %1 ) if {%2} neq {} ( type %2 ) if {%3} neq {} ( type %3 ) if {%4} neq {} ( type %4 ) if {%5} neq {} ( type %5 ) if {%6} neq {} ( type %6 ) if {%7} neq {} ( type %7 ) if {%8} neq {} ( type %8 ) if {%9} neq {} ( type %9 ) )