Groups | Blog | Home
all groups > visual studio .net general > september 2003 >

visual studio .net general : Windows Service


brian
9/29/2003 2:54:23 PM
I have never created a Windows Service and am hoping
someone knows of a good step by step other than
microsofts walk through for an event log. I found that
to be confusing.

I created a vb.net exe that deletes old job batch files
in our file structure that are no longer needed. I run
this once a day manually. I was hoping to make it a
service and schedule it to run daily.

Is turning a .net exe into a windows service easy?

Jon Hughes
9/29/2003 9:49:40 PM
Brian,

It's not necessary to convert an application to a service in order to
schedule it. In fact a service cannot be run at scheduled times. A service
is designed to run in the background all the time (loaded when the system
boots).

To run your program at scheduled times you should just use the built in
Windows scheduler that comes with Windows NT through Windows XP (on my
machine it's at Start -> Programs -> Accesories -> System Tools -> Scheduled
Tasks).

Jon

AddThis Social Bookmark Button