set /p q= echo %q:~8,1% for /f "tokens=1-12 delims=%q:~8,1% " %%a in ("%q%") do ( echo %%a echo %%b echo %%c )