Bonjour,
Me voici face à un nouveau problème, je voudrais savoir si un processus est lancé, si il est lancé, je passe au code suivant si le processus n'est pas lancé, mon vbscript le lance, voici mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
Dim oproc
 
Set objWMI = GetObject("winmgmts:root\cimv2")
    sQuery = "Select * from Win32_process Where Name = 'exceed.exe'"
    For Each oproc In objWMI.execquery(sQuery)
        if  Isnull(oproc.name)  then
		Set WshShell = WScript.CreateObject("WScript.Shell")
		Return = WshShell.Run("notepad.exe" , 1, true)	
		end if
	Next
 
	Set objWMI = Nothing
en fait je ne sais pas comment utiliser le IsNull ou IsEmpty ou si il faut mettre un Not IsNull...

Merci de votre aide...