Bonjour, je voudrai créer une condition IF pour tester le contenu d'une variable, j'ai essayer ceci:
Mais ca ne fonctionne pas, pouriez vous m'aider ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Set WshShell = Wscript.CreateObject("Wscript.Shell") valueOS = WshShell.RegRead ("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" & "ProductName") If valueOS = "Microsoft Windows XP" wscript.echo "oui" Else wscript.echo "non" End if
Partager