SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Obtenir la langue courante de l'utilisateur

Accueil > Script > maintenance > Obtenir la langue courante de l'utilisateur

Obtenir la langue courante de l'utilisateur

Par Naïma HIZIR, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 13/05/2005 vers 10h.

Dim CleReg,WshShell,Pays
SET WshShell = CreateObject ("Wscript.shell")

CleReg="HKEY_CURRENT_USER\Control Panel\Desktop\MultiUILanguageId"

Pays = WshShell.RegRead(CleReg)

SELECT CASE UCASE(Pays)
CASE "00000C0A":
Pays="ES"

CASE "0000040C":
Pays="FR"

CASE "00000410":
Pays="IT"

CASE "00000415":
Pays="PL"

CASE "00000816":
Pays="PT"

CASE ELSE
Pays="EN"

END SELECT
MsgBox(Pays)

Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
2

Visites :
11242

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft

Définitions

Accès direct aux définitions :
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Effectuez une recherche dans les définitions :