How to restart a server task programatically

i have to re start a server task programatically , how do i go for it.

Subject: script to restart server task

Dim session As New NotesSession	Dim serverName As String

Dim consoleCommand As String

Dim consoleReturn As String



serverName = "yourservername"

consoleCommand = "restart task yourtaskname"

consoleReturn = session.SendConsoleCommand( serverName, consoleCommand)



Print ("Running agent to " & consoleCommand & " with result " & consoleReturn)

Subject: restart a server task

is there any way to do this using C toolkit?

regards

d

Subject: I don’t know

I don’t know, as I don’t work with the C toolkit.