Resart Event Server programmaticaly

Hello,

I want to restart the Milestone XProtect Event server programmaticaly or with a batfile, i try with something like this but it dosen’t work even with the cmd :

[C:\Program](file:C:/Program) Files\Milestone\XProtect Event Server\VideoOS.Event.Server.TrayController.exe /restartservice

do you have any idea what is wrong ?

There is no functionality in the MIP SDK to restart the Milestone services. You might be able to implement something that utilize commands like “net stop MilestoneEventServerService” and “net start MilestoneEventServerService” or similar methods (but no functionality in the MIP SDK.).