Salut,
Tu pourrais essayer de créer un fichier .vbs comme ceci:
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
WScript.Echo "Valeurs actuelles des variables:" & chr(10) _
& "VAR1=" & WSHShell.Environment.item("VAR1") & chr(10) _
& "VAR2=" & WSHShell.Environment.item("VAR2")
WSHShell.Environment.item("VAR1") = "nouvelle valeur var 1"
WSHShell.Environment.item("VAR2") = "nouvelle valeur var 2"
WScript.Echo "Nouvelles valeurs des variables:" & chr(10) _
& "VAR1=" & WSHShell.Environment.item("VAR1") & chr(10) _
& "VAR2=" & WSHShell.Environment.item("VAR2")
Set WSHShell = Nothing
WScript.Quit(0)
++
A man would die, though he were neither valiant nor miserable,
only upon a weariness to do the same thing so oft over and over. [Bacon]