Process.Start from a Windows Service....Console?

  • Thread starter TampaWebDevelopment
  • Start date
T

TampaWebDevelopment

I have a Windows service that I have created. That service spins
through the processes, looking to see if a certain application is
running. If it is not, it starts it. The problem that I am having is
that the application is not being started on the console, thus the
user can not interact with it.

So, can I tell the Process.Start method to start it on the console?
Or, do I need to have my service running on the console/interact with
the desktop?

The service is a FTP backup tool. Within the service, I look to see if
the client GUI application is running. If it isn't, I want it running.
I minimize it to the tray.
 
G

Guest

(e-mail address removed) wrote in @b79g2000hse.googlegroups.com:
So, can I tell the Process.Start method to start it on the console?
Or, do I need to have my service running on the console/interact with
the desktop?

You can interact with a service from any .NET environment.

ASP.NET, Console, Desktop, or even remotely.

Just look at the ServiceController class.
 
P

Phill W.

I have a Windows service that I have created.
. . .
The problem that I am having is that the application is not being
started on the console, thus the user can not interact with it.

And that's pretty much what you're going to be stuck with.

Services (and, therefore, any processes that they launch) are not
intended for user interaction and it's getting harder and harder to make
them do so with each new version of Windows.
IMHO, it won't be long before you won't be able to do it at all.
So, can I tell the Process.Start method to start it on the console?
Nope.

Or, do I need to have my service running on the console/interact with
the desktop?

It /might/ work now; it'll probably get broken in a couple of years.
The service is a FTP backup tool. Within the service, I look to see if
the client GUI application is running. If it isn't, I want it running.

Why ?!?

The GUI should only configure what the Service is supposed to do.
The Service /must/ be able to run entirely independently of the GUI.

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top