for /f "tokens=1,* delims==" %%i in ('find "Variable1" .\variable.txt') do ( echo %%i set z=%%j echo %z% )