Restarting a Service in Code

Neal

Forum Admin
Staff member
Joined
Jun 2, 2004
Messages
123
Location
VA
Programming Experience
10+
I have an application I wrote (not a service) that clears log files monthly from my server. My stats program (DeepMetrix LiveStats XSP) seems to choke when this happens.

After running my cleaning code, I'd like to RESTART the DMServiceController from the code. Any code samples of how to do this? I did this some time ago with another app and can't remember what I had to reference and the code that was used.
 
Top Bottom