|
Answer» Hi all
the QUESTION is : is it possible to verify the native language of MS XP PRO (French or English) in DOS ??
if it is How do I do it ?? what is (are) the command(s) ??
Thank you allI don't know for sure, but I found SOMETHING that might work (it works on my COMPUTER). I see a registry key that appears to show the language version. Try this command: Code: [Select]reg QUERY "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WOW\boot.description" /v language.dll Assuming that works, you can use this code to set an environment variable: Code: [Select]@echo off setlocal for /f "tokens=3*" %%a in ('reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WOW\boot.description" /v language.dll ^| findstr /i language') do set Lang=%%a echo Language is %Lang% thanks !!
i'll try that
then if I want it to do a certasin action like :
call install_FR.bat if french or call install_eng if English.... who might I do that ??Then you cold do something like: Code: [Select]if %Lang%==English call install_eng.bat if %Lang%==French call install_fr.batfinaly the command you gave me wans'nt returning what I was looking for...
so I've decided to verify the existance of a known component and a Major difference between the 2 versions...
the Desktop/Bureau element
if one is Desktop : call int_eng.bat if one is Bureau : call int_fra.bat
easy enough !! don't you think
|