Je me demande s'il y a quelqu'un qui peut m'éclaircir les idées sur ce script qui marche bien sous windows XP SP2 mais ne marche pas sous windows 7 ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
Set WS = CreateObject("WScript.Shell")
Command= "cmd /c reg query ""HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"" > c:\Winlogon.txt"
Resultat = ws.run(Command,0,True)
ws.run "Notepad c:\Winlogon.txt"