.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lmtools stop and start service programmatically

1 REPLY 1
SOLVED
Reply
Message 1 of 2
kbarnettza
598 Views, 1 Reply

lmtools stop and start service programmatically

Is it possible to stop and start an lmtools service programmatically?

Here's what I would like to do with an app:

  • At 6 in the morning - stop an lmtools service then start the lmtools service, clearing the log file
  • At 5 in the evening - stop the lmtools service, send the log file to the cloud, then start the service again

Thx for reading.

 

Kevin.

 

1 REPLY 1
Message 2 of 2

With C# you can stop and start windows services (if the app has enough privilegies). Look at this sample:

 

http://www.csharp-examples.net/restart-windows-service/

 

But to ensure the work is done, your app must be a Windows service also I think.

 

 

Hope this helps!

Luis Alberto Manero, Geograma.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost