I have the following example code:
@for /F "tokens=1,2*" %%i in ('%SystemRoot%\system32\reg query "some key" /v "some value"') DO (
echo "inside for"
)
I'd like to use double quotes like this: "%SystemRoot%\system32\reg"
in case there was a space character in that path, but FOR doesn't like it. How can I resolve this? Thank you!