Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Registry Windows

3 Weeks Ago   #11

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64

You can set just about any any word you like as a variable.

@echo off

set mybottom=great



@echo off

for /f "skip=2 tokens=2,*" %%A in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v BuildLabEX') do (set funnyface=%%B)
echo  current build lab ex is $%funnyface%$
echo.& echo.

for /f "tokens=1-2 delims=." %%i in ("%funnyface%") do (
  set myfirsttoe=%%i
  set mysecondtoe=%%j
echo.& echo.
echo operating system build is %myfirsttoe%
echo.& echo.
echo service build number is %mysecondtoe%
echo.& echo.
IF %mysecondtoe% EQU 24408 (
 some command here to do A

Produces this:

Registry Windows-buillabex.jpg

Obviously it sensible to use a word for the variable that is relevant e.g. rather than myfirsttoe and mysecondtoe, I would use osbld and svcbld as the variable names.

My System SpecsSystem Spec
3 Weeks Ago   #12

Win7 pro x64

Quote   Quote: Originally Posted by Underthaker View Post
And what will be the batch script to detect in the (CurrentBuildNumber) registry?
The one line commands

wmic os get Caption
wmic os get Version
wmic os get Buildnumber
wmic os get Caption, Version, Buildnumber

may be useful for what you are doing
My System SpecsSystem Spec
3 Weeks Ago   #13

Windows 10 Pro x64

Thank you all for your help. Thankful for recognition.
My System SpecsSystem Spec


 Registry Windows

Thread Tools

Similar help and support threads
Thread Forum
Cannot delete certain Registry Key; Cannot change Owner of Registry Ke
In order to get rid of the *.zip folder view in WinExplorer on a64bit WIn7 system I tried to delete (according to some tutorials) the Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\CLSID\{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31} Unfortuantely this is NOT possible immediately....
General Discussion
Registry: can't control Desktop Background Slideshow in registry?
Just a rough test: 1. No slideshow on desktop; 2. Backup the registry file; 3. Turn on the slideshow (Desktop - Personalize - Desktop Background - Select All - Save Changes); 4. Run the backup registry file; The desktop starts with the original picture (the desktop wallpaper picture...
Registry problem after windows update and registry optimization tool
Hello sevenforum, I've already spend some time on this forum today but I can't find the solution to a particular registry problem I'm having. While windows was uploading some updates yesterday, I cleaned my registry using Iolo's system mechanic tool and that's where the problems started. (I...
Backup and Restore
Driver Sweeper can't delete all registry files in registry editor So this is the situation: I've unistalled Amd Driver from Device Manager, Unistalled Catalyst software and ran Driver Sweeper. There is only 3 registeries that the Driver Sweeper CAN'T delete and these are under SYSTEM\ folder. I've tried to change user...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 00:06.
Twitter Facebook