|::attempt to parse tokens|
@echo off & setlocal enabledelayedexpansion
:: zz is a string representing the output of reg query, but like Mike said, we need
:: to know what key you are trying to dissect and its output format.
set zz=c: d: e:
call :split %zz%
for /L %%a in (0,1,%c%) do echo %%a==!x%%a!
if "%1" equ "" goto :eof
set /a c+=1