I'm trying to assign a command output to a variable for later use, without the use of temp files. Following answers from here, using for /f "delims=" %%i in ('command') do set output=%%i
, the prompt flashes too fast so I can't read the error message.
The command in question is echo ;%PATH%; | find /C /I "%PATH2%"
where %PATH2% is an earlier set variable containing the path to the python folder. I'm trying to check if the user has the path set, and depending on that continue on. So I want to assign the command output from that command to a variable, in this case "output".