**METHOD:** `shell.Exec(command)`
**Description**
Exécute une commande et permet de lire stdout/stderr via l’objet retourné.
**Syntax**
`shell.Exec(command)`
**Paramètres**
– `command` : Commande à exécuter (ex: « cmd /c ipconfig »).
**Retour**
Objet Exec (avec `StdOut`, `StdErr`, `Status`, etc.).
**Exemples**
« `vb
Dim shell, exec
Set shell = CreateObject(« WScript.Shell »)
Set exec = shell.Exec(« cmd /c echo hello »)
WScript.Echo exec.StdOut.ReadAll
« `
**Voir aussi**
`WshShell.Run`, `WScript.Echo`