WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Changing the Windows language


Question:

I need a way to have a user select a language from a winbatch menu and then have it update the OS and any other menus with that language. So basically, I want to create a script that will present a user with all the languages installed on a windows xp and/or windows 2000 PC. Once the user picks a language I want the script to make the changes where needed so that the when the pc reboots the OS and menus come up withe the language he/she selected......Does winbatch have a function that can change the language or is there registry keys i can change to make the language change. Any suggestions will be appreciated. Thanks

Answer:

Use the intl.cpl Control Panel applet with an installation answer file:
ShellExecute('rundll32','shell32, Control_RunDLL intl.cpl,,/f:"FullPathToAnswerFile.txt"','',@NORMAL,'')
The quotes are required and full answer file path is also required.

The changes take effect after the first reboot, so you have to reboot (documented Window API).

The minimal answer file should contain a RegionalSettings section and the LanguageGroup, SystemLocale, UserLocale keys. This is such an answer file that can be used for Japanese:

[RegionalSettings] 
LanguageGroup=7 
SystemLocale=0411 
UserLocale=0411 
http://www.microsoft.com/globaldev/reference/win2k/setup/specify.mspx

http://www.microsoft.com/middleeast/arabicdev/DevTools/more/RegionalSettings...

http://www.microsoft.com/globaldev/reference/win2k/setup/lcid.mspx

http://www.microsoft.com/globaldev/reference/winxp/xp-lcid.mspx

http://www.winnetmag.com/Article/ArticleID/15818/15818.html


Article ID:   W16986
File Created: 2007:07:03:14:27:30
Last Updated: 2007:07:03:14:27:30