Batch Detect OS Language

Hi Folks,

The following batch script detects your OS language in the registry.

 

@Echo off
@ECHO off
FOR /f "tokens=3" %%a IN ('reg query^
"HKLM\SYSTEM\ControlSet001\control\nls\language" /v InstallLanguage') DO (
SET answer=%%a
)
IF %answer%==0409 (
GOTO ENGLISH
)
IF %answer%==0413 (
GOTO DUTCH
)
goto end
:DUTCH
ECHO Dutch installation found
goto end
:ENGLISH
ECHO Egnlish installation found
goto end