473,396 Members | 1,918 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,396 software developers and data experts.

Running executable by a windows service

Hi Guys,
I need to use a windows service I created to run an executable on my system;
I tried the following form OnStart, form OnContinue - nothing.

Dim p As New Process
Dim pi As New ProcessStartInfo
pi.FileName = "ccc.exe"
p.StartInfo = pi
p.Start()

This solution DID work in my WinForm application but not in the service

any idea?

Thanks!
Nov 21 '05 #1
3 6173
specify the complete path because services have as applicationpath the
windows system directory and not the path where you started the service
program.
"Ori :)" <Or*@discussions.microsoft.com> schreef in bericht
news:2E**********************************@microsof t.com...
Hi Guys,
I need to use a windows service I created to run an executable on my
system;
I tried the following form OnStart, form OnContinue - nothing.

Dim p As New Process
Dim pi As New ProcessStartInfo
pi.FileName = "ccc.exe"
p.StartInfo = pi
p.Start()

This solution DID work in my WinForm application but not in the service

any idea?

Thanks!

Nov 21 '05 #2
On Wed, 1 Dec 2004 06:21:05 -0800, Ori :) wrote:

any idea?


In addition, by default, the service will run under the LocalSystem
account. This account may not have the necessary rights to run the exe.
On the Service Control Manager, you can set the account to use to run the
app, or grant the LocalSystem account the right to run this app.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #3
Thanks Chris!

Which is the highest priority account for a service?

LocalSystem/LocalService.. ?
"Chris Dunaway" <"dunawayc[[at]_lunchmeat" wrote:
On Wed, 1 Dec 2004 06:21:05 -0800, Ori :) wrote:

any idea?


In addition, by default, the service will run under the LocalSystem
account. This account may not have the necessary rights to run the exe.
On the Service Control Manager, you can set the account to use to run the
app, or grant the LocalSystem account the right to run this app.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.

Nov 21 '05 #4

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

Similar topics

2
by: Lorin McCaffrey | last post by:
I have found that .NET applications made up from multiple assemblies do not run from file servers if Microsoft Client Service for NetWare is used to access the file server. When you try to do so,...
7
by: Johnny | last post by:
How do I create a link on a Web page on my hard drive that will run an executable file on my hard drive? For example, let's say I create runpoodle.htm and save it to my hard drive, and let's...
2
by: Jeffrey Palermo, MCAD.Net | last post by:
I have some classes that control file processing in c#. The files come from a mainframe and may take some time for each to process. I use the Threadpool to process multiple files at once. Each...
2
by: Liz | last post by:
Greetings. Again, I'm hoping I'm answering an absurdly simple question. My current situation is this: I have an .exe file that contains numerous Shell commands that run an external program...
4
by: Simon Verona | last post by:
My software relies on a third party data provider to a propretary database. In turn the third party database relies on a Windows Service that runs on the server to supply the data... The problem...
14
by: William LaMartin | last post by:
If I have a Windows application with no form--only a module that starts with sub main and which has a system timer, in the elapsed event of which I want to run some code, how can I keep this...
0
by: Sunil Pandita | last post by:
Hi all, I have created a windows service that is working well. Now i want to create the multiple instances of this service on the same box. How could it be possible?. One way that I thought...
17
by: Csaba Gabor | last post by:
Is there a way to determine the path to the php executable (as opposed to the script. In other words, I am looking for the path to php.exe or php-win.exe) that is currently running (ie. how was...
0
by: =?Utf-8?B?U3RldmUgTWFydGlu?= | last post by:
I am attempting to launch a console application from a service under a different set of credentials running on Windows Server 2003. I am getting an error "0xC06D007E: Module not found." from the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.