How to Run executable by a windows service
-
Hi Can any one tell me how to run a exectuable by windows service? I tried through process.start(), but no use. I am using Admin user to run this service. I am struck up with this... Thanks for the help in advance.
-
Hi Can any one tell me how to run a exectuable by windows service? I tried through process.start(), but no use. I am using Admin user to run this service. I am struck up with this... Thanks for the help in advance.
Services run on their own desktop so if you start a program from service it will start on that desktop and not at the desktop you are looking at :)
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
-
Services run on their own desktop so if you start a program from service it will start on that desktop and not at the desktop you are looking at :)
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
Hi I am not sure whether i have posted the requirement correctly. Any how i will try to make it clear. 1. I am having a EXE in the application folder. 2. I have a windows service through which i want to run the exe available in the application folder. Am i clear now..........
-
Hi I am not sure whether i have posted the requirement correctly. Any how i will try to make it clear. 1. I am having a EXE in the application folder. 2. I have a windows service through which i want to run the exe available in the application folder. Am i clear now..........
Yes, it is clear. Same reply applies here. When starting an executable from service it runs on another desktop.
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
-
Hi Can any one tell me how to run a exectuable by windows service? I tried through process.start(), but no use. I am using Admin user to run this service. I am struck up with this... Thanks for the help in advance.
Try setting the service's
Allow service to interact with desktop
option to true in the services applet. Be warned that this is very bad practice.Cheers, Vıkram.
"if abusing me makes you a credible then i better give u the chance which didnt get in real" - Adnan Siddiqi.
-
Try setting the service's
Allow service to interact with desktop
option to true in the services applet. Be warned that this is very bad practice.Cheers, Vıkram.
"if abusing me makes you a credible then i better give u the chance which didnt get in real" - Adnan Siddiqi.
Vikram A Punathambekar wrote:
Be warned that this is very bad practice.
And it is no more supported in Vista: Impact of Session 0 Isolation on Services and Drivers in Windows Vista[^]
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
-
Services run on their own desktop so if you start a program from service it will start on that desktop and not at the desktop you are looking at :)
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
Ummmm, no. If he sets up his Process object correctly, he can run an external application.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Hi Can any one tell me how to run a exectuable by windows service? I tried through process.start(), but no use. I am using Admin user to run this service. I am struck up with this... Thanks for the help in advance.
You have to provide a lot more info before we have any hope of assisting you. 1) Can you run the application manually? 2) How are you setting up your Process object?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Vikram A Punathambekar wrote:
Be warned that this is very bad practice.
And it is no more supported in Vista: Impact of Session 0 Isolation on Services and Drivers in Windows Vista[^]
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
Thanks, my Georgian friend, I didn't know that. :) Can't figure out the lynch votes though. :confused:
Cheers, Vıkram.
"if abusing me makes you a credible then i better give u the chance which didnt get in real" - Adnan Siddiqi.