Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Language  (Read 2107 times)

0 Members and 1 Guest are viewing this topic.

almn

  • Guest
Language
« on: June 08, 2006, 03:41:43 PM »
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

GuruGary



    Adviser
    Re: Language
    « Reply #1 on: June 08, 2006, 11:35:52 PM »
    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%

    almn

    • Guest
    Re: Language
    « Reply #2 on: June 09, 2006, 04:59:52 AM »
    Great but that doesn't work  ;D
    I am using XP French and it echos XP English  :-?

    Thanks anyway

    Almn

    almn

    • Guest
    Re: Language
    « Reply #3 on: June 10, 2006, 10:50:39 AM »
    I think this echos the language of the keyboard  :-X

    Almn