coucou Posted June 20, 2005 Share Posted June 20, 2005 Hi,What command return the OS Language or the Regional setting?In fact i'm looking to add an "IF" condition in a .cmd file to call/select a specific language setup for a multilangual application.If it can help, here the regional setting in the registry[HKEY_CURRENT_USER\Control Panel\International] "Locale"="0000040C""sCountry"="France""sLanguage"="FRA"Regardscoucou Link to comment Share on other sites More sharing options...
djbe Posted June 20, 2005 Share Posted June 20, 2005 Well, to get the os language (not the keyboard settings, that can be bogus), you can find it here:go to %systemroot%\system32, search for the file winver.exe, check it's properties, in the tab "version", click on "language". There it is. If now somehow you could get that in your batch file... (I want to know that too ) Link to comment Share on other sites More sharing options...
coucou Posted June 21, 2005 Author Share Posted June 21, 2005 Hi,After hours of serach and test i found how to... with AutoIt $Lang = RegRead("HKEY_CURRENT_USER\Control Panel\International", "sLanguage")If $Lang = "FRA" ThenORSelect Case $Lang = "FRA"when the serached key "sLanguage", "Locale", "sCountry"... could be found in Regional settings in the registryTested working Enjoycoucou Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now