In my bat or cmd file I need to figure wich language version of windows xp my bat file is run on and based on this make an appropreate choice. Is there a way to figure this?
"ILiya" <iliya00@yandex.ru> wrote in message
news:OoPiOhhQIHA.4684@TK2MSFTNGP02.phx.gbl...
In my bat or cmd file I need to figure wich language version of windows xp
my bat file is run on and based on this make an appropreate choice. Is there
a way to figure this?
Thanks
==========
You could use this batch file:
#@echo off
#goto Start
#------------------------------------------
#Extract the country code from the registry
#------------------------------------------
#:Start
#regedit /E country.reg "HKEY_CURRENT_USER\Control Panel\International"
#for /F "tokens=2 delims==" %%a in ('type country.reg ^| find /i "Locale"')
do echo Country code=%%~a
#del country.reg
You must remove all # characters. Their only purpose is to mark
the beginning of each line.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.