etlt01
asked on
Set OS-Bit type in with batch
Hi I'm trying to set OS-Bit type from a query to registry. but I cant figure out how to set the right value. I hope someone could help me.
With my script I get OS-BIT= Identifier REG_SZ x86 Family 6 Model 15 Stepping 11
but I want OS-BIT=x86
With my script I get OS-BIT= Identifier REG_SZ x86 Family 6 Model 15 Stepping 11
but I want OS-BIT=x86
set OS-BIT=
@rem Check for settings in registry and set variables
for /F "tokens=1 delims=" %%x in ('"REG Query HKLM\Hardware\Description\System\CentralProcessor\0 /v Identifier"') do set OS-BIT=%%x
echo %OS-BIT%
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER