469,898 Members | 2,166 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Windows Service

Hi! Can anyone give a snippet of code on how to start in
Windows Service, an executable file much like the start
command in a batch file. ie. start myapp.exe arg.somefile

Thanks,
ALim

Jul 19 '05 #1
2 3390
JoE
To start a service
'net start btssvc'

To stop a service
'net stop btssvc'
"alim" <am****@yahoo.com> wrote in message
news:09****************************@phx.gbl...
Hi! Can anyone give a snippet of code on how to start in
Windows Service, an executable file much like the start
command in a batch file. ie. start myapp.exe arg.somefile

Thanks,
ALim

Jul 19 '05 #2
Joe,
Thanks for your suggestion, but I'm sorry my request was
not so clear. I just wanted to figure out how I could run
an executable file inside the OnStart method in the
ServiceBase class. Most examples in how to create a
Windows Service just prints into a log file or a console,
my question, I guess, is how does .NET runs an executable
file. Let me know if I'm still not making sense here.
Thanks again,
Alim
-----Original Message-----
To start a service
'net start btssvc'

To stop a service
'net stop btssvc'
"alim" <am****@yahoo.com> wrote in message
news:09****************************@phx.gbl...
Hi! Can anyone give a snippet of code on how to start in
Windows Service, an executable file much like the start
command in a batch file. ie. start myapp.exe arg.somefile
Thanks,
ALim

.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Michael Riggio | last post: by
1 post views Thread by Artur Kowalski | last post: by
9 posts views Thread by SP | last post: by
1 post views Thread by Scott Davies | last post: by
reply views Thread by Scott Davies | last post: by
3 posts views Thread by Doug Bailey | last post: by
4 posts views Thread by tshad | last post: by
5 posts views Thread by dm3281 | last post: by
1 post views Thread by =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.