tags:

views:

89

answers:

4

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 my exe in to window service

A: 

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");
JL
This is C# code, and the question is VC++
Ahmed Said
A: 

This question from serverfault should help - How to create a windows service in XP

Rahul
A: 

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

Randolph Potter
A: 

you can use CreateProcess windows API, or system C++ function

Ahmed Said