vbscript – WshShell.ExpandEnvironmentStrings

**METHOD:** `shell.ExpandEnvironmentStrings(string)`

**Description**
Développe les variables d’environnement (ex: `%TEMP%`).

**Syntax**
`shell.ExpandEnvironmentStrings(string)`

**Paramètres**
– `string` : Chaîne contenant des variables %VAR%.

**Retour**
Chaîne développée.

**Exemples**
« `vb
Dim shell
Set shell = CreateObject(« WScript.Shell »)
WScript.Echo shell.ExpandEnvironmentStrings(« %TEMP% »)
« `

**Voir aussi**
`WshShell.Environment`

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *