1.

Solve : Language?

Answer»

Hello,

I WOULD like to know how to find which version of xp the user is using(FRENCH,spanish,ETC...)
then GOTO the :language .

For example:

find %langage%
if %language% ==fr goto fr
if %language% ==eng goto eng
if %language% ==spagoto spa
if %language% ==cn goto cn

OR

find %language%
goto %language%

:fr
echo nice job
pause
exit
:eng
echo nice job
pause
exit
:spa
echo nice job
pause
exit
:cn
echo sorry your language is not supported
pause
exit
:jap
echo sorry your language is not supported
pause
exit
:ger
echo sorry your language is not supported
pause
exit

Thank You

Almn
I only have English Windows, so I don't have ANYTHING else to test with, but maybe you can try this?
Code: [Select]@echo off
for /f "tokens=2*" %%a in ('reg query "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WOW\boot.description" /v language.dll') do set language=%%b
echo Language is %language%Great but that doesn't work
I am using XP French and it echos XP English :-?

Thanks anyway

AlmnI think this echos the language of the keyboard

Almn



Discussion

No Comment Found