is there a way to figure windows language version in bat file?

I

ILiya

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
 
P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top