change regional settings via command line?

Posted by: f_devocht

change regional settings via command line? - 10/08/2002 14:49

I'd like to change my regional settings (W2K) via the command line. Anybody have an idea how to do this?
I know that 'control intl.cpl' makes the regional box appear, but I also want it to change my local from Dutch to English.
Reason I want this is because I have a program that requires regional settings to be Dutch and an other program that requires regional settings to be English. So I was thinking of just starting each program with a script that first changes the regional settings (and possibly puts them back to a default afterwards).

help much appreciated!
Frank
Posted by: Phoenix42

Re: change regional settings via command line? - 14/08/2002 06:42

Frank,
I don't think it is possible to do this via command-line, Windows just does not work that way.
But it is something that can be scripted, I do something similar at work with the TCP/IP setting. If I get a chance I'll throw something together that should help you.
Posted by: Phoenix42

Re: change regional settings via command line? - 14/08/2002 06:56

Having played with it a bit, I've found that one can have several "Regional Options" select and scroll between them by using "Left-Alt & Shift".
Check out the tab titled "Input Locales" under the Regional Options cpl.
Posted by: f_devocht

Re: change regional settings via command line? - 10/09/2002 01:48

Found it .
I did an export of the Belgian regional settings registry key (b.reg) and also for us.reg. I then use a little batch to start my program:

regedit /s us.reg
miatalinklab.exe
regedit /s b.reg

To prevent the dos window from staying open in the background I use a little utility called Quiet.exe that makes it run completely invisible (not even minimized on the taskbar). That way I can't close it by accident before my program has ended.

Perfect !

Frank