I\'m struggling to read the value of a registry key into a variable. The registry value may, or may not, contain spaces. In this case I\'m trying to look up SDK paths.
I
Use Quotation marks
SET "sdkpath=%%M"
instead SET sdkpath=%%M
SET sdkpath=%%M
This will avoid problems with spaces.