473,385 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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.

Aug 6 '07 #1
2 3588
Ta*****************@gmail.com wrote in news:1186361896.205915.321850
@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.
Aug 6 '07 #2
Ta*****************@gmail.com wrote:
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.
Aug 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am...
6
by: Dmitri Shvetsov | last post by:
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external...
1
by: Mullin Yu | last post by:
But, I want is that I can have a Main app that will start a new process or kill one particular or all process. The process will open a console exe. But, I don't want the user to close the console...
2
by: Tobias Johansson | last post by:
Hello, I'm having what I believe a security problem to execute an executable file from a windows service in windows server 2003. It works fine in WIN XP SP2 The program(the service) itself...
6
by: Dde | last post by:
Hi, I am having a problem starting a process from within a web service. My code works in a console program but not from the web service. Looks like the process starts, I can see it in...
1
by: BenS | last post by:
Good Morning and Happy Wednesday! I've got a web service that exposes a method that takes an string input parameter that specifies an executable on the server that starts a process. These...
12
by: Noam | last post by:
I had originally written a program as a c# console application. The program used a reference that I wrote in c++. Later I was told to re-write the application as a windows service. When the service...
5
by: Reddy | last post by:
I am running process.sart to run gpg.exe to encrypt files. It's working fine with console application. When i use same code in windows service. It's not working. It's not even throwing...
3
by: Billy Bob | last post by:
Hello In C# how can i start a remote process such as someapp.exe on a remote PC? I know the remote PC's name, but how do I start the app on that PC? Thanks ..
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.