Dim strComputer, strList
Dim wshShell
strComputer = "."
DQ = Chr(34)
Set wshShell = CreateObject("Wscript.Shell")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery _
( "Select * from Win32_Process Where Name = 'fusiondictate.exe'" )
If colProcesses.Count = 0 Then
wshShell.run DQ & "C:\Program Files (x86)\Fusion Dictate 10\fusiondictate.exe" & DQ, True
Else
'Do Nothing
End If
|