@echo offfor /f "tokens=2* delims==" %%i in ('findstr /i /c:"psd=" "C:\.txt"') do set str=%%iecho %str%pause