1
Reply

Console application run as a windows service or command line in C# 2.0

Ask a question

Hi all,

 

Right we have application using Microsoft Visual C# 2.0.

 

Application divided by two programs

         

1.      Win forms          

2.      Console Application.

 

We already completed that program using C# 2.0.

 

Console application, I like to run as a windows service or command line. (It’s depends on the user option).

 

How can I run a console application as command line or windows service?

[I don’t want separate EXE for console or windows service, I need to run one EXE as a Console or Windows Service).

 

How can I implement this functionality?

 

Kindly let me know the technical idea or sample code for that.

 

Thank you,

 

Sundar.

Answers (1)