here is the script if anyone wants... could be used to do a lot if edited a little ( to check if, and restart if not, a server is up for example.. will be doing this sometime my self)
set service = GetObject ("winmgmts:")
kfservers = "0"
mcservers = "0"
cod4servers = "0"
armaservers = "0"
UrTservers = "0"
for each Process in Service.InstancesOf ("Win32_Process")
If Process.Name = "ucc.exe" then
kfservers = kfservers + 1
End If
next
for each Process in Service.InstancesOf ("Win32_Process")
If Process.Name = "java.exe" OR Process.Name = "javaw.exe" then
mcservers = mcservers + 1
End If
next
for each Process in Service.InstancesOf ("Win32_Process")
If Process.Name = "iw3mp.exe" then
cod4servers = cod4servers + 1
End If
next
for each Process in Service.InstancesOf ("Win32_Process")
If Process.Name = "arma2oaserver.exe" then
armaservers = armaservers + 1
End If
next
for each Process in Service.InstancesOf ("Win32_Process")
If Process.Name = "ioUrTded.exe" then
UrTservers = UrTservers + 1
End If
next
strMessage = "there are " & kfservers & " kfservers running. "
Wscript.Echo strMessage
strMessage = "there are " & mcservers & " mcservers running. "
Wscript.Echo strMessage
strMessage = "there are " & cod4servers & " cod4servers running. "
Wscript.Echo strMessage
strMessage = "there are " & armaservers & " armaservers running. "
Wscript.Echo strMessage
strMessage = "there are " & UrTservers & " UrTservers running. "
Wscript.Echo strMessage
you could add somethign like...
if cod4servers <= 5 then
exec "a:\server\file\location\iw3mp.exe -set net_port'1024' asdlkajsdlkajsd"
oh and beena while guys... how are people?
This post has been edited by H3NRY: 03 July 2012 - 04:16 PM