how to call a another exe in in window service
i made the program and create its exe file i want to add my exe file in to window service , because when the computer start my program will be automatically start just because of window service so please can any one tell me how to add m开发者_运维百科y exe in to window service
JL answered the one interpretation. If on the other hand you want to CREATE a Windows Service from an EXE, then there are many ways to do so.
How to create a Windows service by using Sc.exe
you can use CreateProcess windows API, or system C++ function
If I am understanding you correctly - You have a windows service, and you now want to call an exe from this windows service.
The easiest way is to use:
Process.Start("example.exe");
Visual C++:
Process::Start(S"IExplore.exe");
精彩评论