Link to home
Start Free TrialLog in
Avatar of etlt01
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


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%

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Farhan Kazi
Farhan Kazi
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of etlt01
etlt01

ASKER

Tahnks :)