set /p line= set %%1=aa echo %%1 for /f "tokens=1-3" %%1 in ("%line%") do ( echo %%1 )