Page 1 of 1 1
Topic Options
#37444 - 2003-03-06 03:02 PM change localle???
solal Offline
Lurker

Registered: 2003-03-06
Posts: 2
Has anyone ever had the need to change the users default localle in Windows versions 98/2000/xp through the login script?

is this possible?

should I give up now?

ANY help would be greatly appreciated! [Confused]

Top
#37445 - 2003-03-06 03:32 PM Re: change localle???
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
solal,

welcome on board!

I use an exe called setlocale.exe to do this...
I could mail it to you if wanted...
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#37446 - 2003-03-06 03:40 PM Re: change localle???
solal Offline
Lurker

Registered: 2003-03-06
Posts: 2
That would be great [Embarrassed] )

I've found the registry keys that affect this but they seem to be dropped whenever I open an app that accesses the settings such as MS Word.

please e-mail the file to squidderz@hotmail.com

p.s. if you have an example of useage that would also be great.

much appreciated!!!

Top
#37447 - 2003-03-06 03:52 PM Re: change localle???
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
you've got mail...
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#37448 - 2003-03-06 03:56 PM Re: change localle???
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
forgot the readme.txt:

With SetLocale you can preset a user's international settings. SetLocale is
designed for loginscripts, but might be used via the commandprompt or
shortcuts.

A keyboard layout name should be derived from the hexadecimal value of the
Language# identifier corresponding to the layout. For example, U.S. English
has a language identifier of 00000409, so the primary U.S. English layout is
named "00000409". Variants of U.S. English layout, such as the Dvorak layout,
are named "00010409," "00020409" and so on. You can manualy select a
different keyboard-layout trough Settings | International, and read the
corresponding keyboard-layout-id in HKEY_CURRENT_USER\Keyboard Layout\Substitutes

Example:

SetLocale 00000413 00020409

This will set Dutch language using US international keyboard.

Language# Language
-------- ---------------------------
00000436 Afrikaans
0000041c Albanian
00000401 Arabic (Saudi Arabia)
00000801 Arabic (Iraq)
00000c01 Arabic (Egypt)
00001001 Arabic (Libya)
00001401 Arabic (Algeria)
00001801 Arabic (Morocco)
00001c01 Arabic (Tunisia)
00002001 Arabic (Oman)
00002401 Arabic (Yemen)
00002801 Arabic (Syria)
00002c01 Arabic (Jordan)
00003001 Arabic (Lebanon)
00003401 Arabic (Kuwait)
00003801 Arabic (U.A.E.)
00003c01 Arabic (Bahrain)
00004001 Arabic (Qatar)
0000042b Windows 2000 or later: Armenian. This is Unicode only.
0000042c Azeri (Latin)
0000082c Azeri (Cyrillic)
0000042d Basque
00000423 Belarussian
00000402 Bulgarian
00000455 Burmese
00000403 Catalan
00000404 Chinese (Taiwan)
00000804 Chinese (PRC)
00000c04 Chinese (Hong Kong SAR, PRC)
00001004 Chinese (Singapore)
00001404 Windows 98/Me, Windows 2000 or later: Chinese (Macau SAR)
0000041a Croatian
00000405 Czech
00000406 Danish
00000465 Whistler: Divehi. This is Unicode only.
00000413 Dutch (Netherlands)
00000813 Dutch (Belgium)
00000409 English (United States)
00000809 English (United Kingdom)
00000c09 English (Australian)
00001009 English (Canadian)
00001409 English (New Zealand)
00001809 English (Ireland)
00001c09 English (South Africa)
00002009 English (Jamaica)
00002409 English (Caribbean)
00002809 English (Belize)
00002c09 English (Trinidad)
00003009 Windows 98/Me, Windows 2000 or later: English (Zimbabwe)
00003409 Windows 98/Me, Windows 2000 or later: English (Philippines)
00000425 Estonian
00000438 Faeroese
00000429 Farsi
0000040b Finnish
0000040c French (Standard)
0000080c French (Belgian)
00000c0c French (Canadian)
0000100c French (Switzerland)
0000140c French (Luxembourg)
0000180c Windows 98/Me, Windows 2000 or later: French (Monaco)
00000456 Whistler: Galician
00000437 Windows 2000 and later: Georgian. This is Unicode only.
00000407 German (Standard)
00000807 German (Switzerland)
00000c07 German (Austria)
00001007 German (Luxembourg)
00001407 German (Liechtenstein)
00000408 Greek
00000447 Whistler: Gujarati. This is Unicode only.
0000040d Hebrew
00000439 Windows 2000 and later: Hindi. This is Unicode only.
0000040e Hungarian
0000040f Icelandic
00000421 Indonesian
00000410 Italian (Standard)
00000810 Italian (Switzerland)
00000411 Japanese
0000044b Whistler: Kannada. This is Unicode only.
00000860 Kashmiri
0000043f Kazakh
00000457 Windows 2000 and later: Konkani. This is Unicode only.
00000412 Korean
00000812 Windows 95, Windows NT 4.0 only: Korean (Johab)
00000440 Whistler: Kyrgyz.
00000426 Latvian
00000427 Lithuanian
00000827 Windows 98 only: Lithuanian (Classic)
0000042f FYRO Macedonian
0000043e Malay (Malaysian)
0000083e Malay (Brunei Darussalam)
00000458 Manipuri
0000044e Windows 2000 and later: Marathi. This is Unicode only.
00000450 Whistler: Mongolian
00000414 Norwegian (Bokmal)
00000814 Norwegian (Nynorsk)
00000415 Polish
00000416 Portuguese (Brazil)
00000816 Portuguese (Portugal)
00000446 Whistler: Punjabi. This is Unicode only.
00000418 Romanian
00000419 Russian
0000044f Windows 2000 and later: Sanskrit. This is Unicode only.
00000c1a Serbian (Cyrillic)
0000081a Serbian (Latin)
00000459 Sindhi
0000041b Slovak
00000424 Slovenian
0000040a Spanish (Traditional Sort)
0000080a Spanish (Mexican)
00000c0a Spanish (Modern Sort)
0000100a Spanish (Guatemala)
0000140a Spanish (Costa Rica)
0000180a Spanish (Panama)
00001c0a Spanish (Dominican Republic)
0000200a Spanish (Venezuela)
0000240a Spanish (Colombia)
0000280a Spanish (Peru)
00002c0a Spanish (Argentina)
0000300a Spanish (Ecuador)
0000340a Spanish (Chile)
0000380a Spanish (Uruguay)
00003c0a Spanish (Paraguay)
0000400a Spanish (Bolivia)
0000440a Spanish (El Salvador)
0000480a Spanish (Honduras)
00004c0a Spanish (Nicaragua)
0000500a Spanish (Puerto Rico)
00000430 Sutu
00000441 Swahili (Kenya)
0000041d Swedish
0000081d Swedish (Finland)
0000045a Whistler: Syriac. This is Unicode only.
00000449 Windows 2000 and later: Tamil. This is Unicode only.
00000444 Tatar (Tatarstan)
0000044a Whistler: Telugu. This is Unicode only.
0000041e Thai
0000041f Turkish
00000422 Ukrainian
00000420 Windows 98/Me, Windows 2000 or later: Urdu (Pakistan)
00000820 Urdu (India)
00000443 Uzbek (Latin)
00000843 Uzbek (Cyrillic)
0000042a Windows 98/Me, Windows NT 4.0 and later: Vietnamese
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#37449 - 2003-03-06 04:32 PM Re: change localle???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mm...
it can be done in vbscript and tried with wmi but as I'm not wmi-quru, couldn't make it happen.

gave up at:
code:
$objWMIService = GetObject("winmgmts:\\.")
$colOperatingSystems = $objWMIService.InstancesOf("Win32_OperatingSystem")

For Each $objOperatingSystem In $colOperatingSystems
? "-Locale: " $objOperatingSystem.Locale
$objOperatingSystem.Locale = "0409"
$objOperatingSystem.put
? "-Locale: " $objOperatingSystem.Locale
Next
get $

_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.185 seconds in which 0.106 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org