|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[VBScript] Process Monitor & Restarter
See post below.
|
|
#2
|
|||
|
|||
|
Just for anyone who wants to know I figured out a script ! Just checks every minute If it's running if not it calls it up.
sProcessName = "pbxcisco.exe" sComputer = "." ' use "." for local computer Set oWmi = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & sComputer & "\root\cimv2") Set oShell = CreateObject("WScript.Shell") ' go into eternal loop Do Set colProcessList = oWmi.ExecQuery _ ("Select * from Win32_Process Where Name = '" & sProcessName & "'") If colProcessList.Count = 0 Then oShell.Run "C:\VMLocal\PBXCisco.exe", 1, False End If WScript.Sleep 6 * 10 * 1000 ' wait 1 minute before trying again Loop |
|
#3
|
|||
|
|||
|
Fix available for root cause of what you are seeing
Hi Rosca,
I work for the vendor who writes 'pbxcisco.exe'... I am interested to see that problem fixed permanantly at your site, please feel free to PM me, with your details and I'll get in contact to resolve the problem. Thx Aardvark |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > Huge ask |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|