@echo off set "str=0123456789ABCDEF" set /a n=0 :lp echo,%%str:~%n%,1%% set /a n+=1 if %n% equ 16 goto end goto lp :end pause