Home All Groups Group Topic Archive Search About

Windows Service calling executables

Author
16 Feb 2006 9:55 PM
Kevin Jut
I would like to build a Windows Service using .NET which when started, will
execute another executable such as Wordpad.exe.

How can this be done?

Any help would be appreciated.

Regards

Kevin

Author
17 Feb 2006 1:49 PM
Zeeshan Gulzar
Create a new thread on service's start method and handle it a method delegate.
Use create Process class object and pass the exe name with arg if any to
Process.StartInfo method and call Process.Start().

Note that the service's start method returns within 30 sec. otherwise
service fails to start.

Zeeshan Gulzar

Show quote
"Kevin Jut" wrote:

> I would like to build a Windows Service using .NET which when started, will
> execute another executable such as Wordpad.exe.
>
> How can this be done?
>
> Any help would be appreciated.
>
> Regards
>
> Kevin

AddThis Social Bookmark Button