|It's that damned unicode again. F/e: after loading,|
for /f "tokens=2 delims==" %%A in ('wmic os get OSArchitecture /format:value') do set architecture=%%A
you will note that the first two characters of "64-bit" appear to be asterisks, but what you have is an embedded CR in the variable. Output the variable to a file and use EDIT:
>arch echo **!architecture!**
and you will see the CR at the end of the var. content, looks like a musical note. All ya gotta do is trim that CR off your variable:
That should fix it.
ps: interestingly, percent variables aren't thus afflicted, only exclam variables! try this:
message edited by nbrane