The problem we quickly run into is that MyProgram. We can get around this by making a different program call MyProgram. The problem with this approach is that SCM will still report the service as failing to start, and will reflect that status in the Services applet as well. EXE that comes with the Windows Resource Kit , it is a service-aware application that will play nice with SCM, and will start up our program in the process.
EXE to a different location. In the example above, the MyProgram. EXE to that location as well. How can a Windows service execute a GUI application? Required code, should run in the service using SCM and any configuration required or interaction with the service should be placed in a seperate client application communicating through.. This can be achieved simply by: 1 creating one console application. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Run windows application from Windows service Ask Question. Asked 6 years, 2 months ago. Active 6 years, 1 month ago. Viewed 11k times. Is64BitOperatingSystem p. Hussain Hussain 1 1 gold badge 4 4 silver badges 17 17 bronze badges. This site uses Akismet to reduce spam. Learn how your comment data is processed. Skip to content. You know that Windows Services are kind of software that do that.
But, what if you want a non-service app to run automatically, like a service, even notepad. The solution is to simply use the windows integrated Task Scheduler. Hi Amy You get this error message because your sc syntax is wrong. Edited by ugabrielu Wednesday, March 15, AM. Wednesday, March 15, AM. Wednesday, March 15, PM. Best Regards, Anne Please remember to mark the replies as answers if they help. Thursday, March 16, AM. Thanks, I did it but nobody knows.
Thursday, March 16, PM. Appears you asked in a dead forum.
0コメント