Sign in with
Sign up | Sign in
Your question

Language through Command Prompt

Last response: in Windows 7
Share
December 22, 2010 3:09:19 PM

Hello,
Is this Possible to check Operating System Language through Command Prompt ?
a c 352 $ Windows 7
December 22, 2010 3:39:19 PM

systeminfo, you will see the system locale.
m
0
l
December 23, 2010 12:23:47 PM

@ hang-the-9

then it will open the another window, can we see in only the command Prompts ?
m
0
l
Related resources
a c 352 $ Windows 7
December 23, 2010 1:32:03 PM

It won't open another windows, the result will be displayed on the screen as long as you start the command from a window. If you just type in systeminfo in the Run field, it will run but dissapear. You need to scroll up or down to see it the language settings unless you have the command window larger than default.

What are you trying to use this info for? If for a script, you can use vbscript or even a batch file redirect (> arrorw) and send the output to a text file.
m
0
l
February 23, 2012 12:47:08 PM

purushottamaher said:
Hello,
Is this Possible to check Operating System Language through Command Prompt ?


The way I found to achieve something similar is to check if Windows is in English or in Portuguese by checking the environment variable with the Program Files path.

In Portuguese: "Arquivos de programas"

In English: "Program files"

How to do it:

To check if Windows is in Portuguese (Brazil):

  1. @echo %PROGRAMFILES%|find "Arquivos de programas" > NUL
  2. if errorlevel 0 echo Windows is in Portuguese



And in English:

  1. @echo %PROGRAMFILES%|find "Program files" > NUL
  2. if errorlevel 0 echo Windows is in English



So, at least you can check if Windows is in a specific language, as long as you know what the programs folder is called in that language.

Notice: the path is case sensitive. If you put "Program Files" with an uppercase "F", it won't find anything. Correct is all lowercase.

To ignore case, use the /I switch in the FIND command.

Mickets
m
0
l
!