Answer the question
In order to leave comments, you need to log in
How to run a program from a service?
There is a service that launches a console program in the interval. How can I run a program from a service in an authorized user session? Now I can only run the program in a service session, and there are no objects I need there. Or if converted into a background application, how to restart the process when it closes or fails.
Answer the question
In order to leave comments, you need to log in
Well, as an option, run a batch file from the service that will launch the program under the desired user, if the service itself does not have mechanisms for specifying the user.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question