Windows service problem

Bigjimmo

Newcomer
Joined
Jun 25, 2003
Messages
7
I have a service that sends an e-mail to everybody in a database when it is started. I want to modify this service so it only sends the e-mail on a weekly basis.

Anybody got any idea's on how I can do this?

Cheers

Jim
 
Set your service startup to Manual. Create a batch file that starts up your service; net start <your service>. Create a Scheduled Task that runs weekly. Set the command of your task to the batch file you created.
 
Is there another way to do this or is it easy to make a batch file as I havn't done this before.

Thanks

Jim
 
If you know how to issue commands from the command prompt, then you should have no problems. A batch file is simply a group of commands contained in a single file; you can create the file w/ any text editor.
 
OK I typed in Net start (name of service) and my service started!

So would I just write that in a word editor? What file extension would I use?

Thanks for his help!:)

Jim
 
It's best if you give it the traditional .bat extension to easily distinguish it from other executable files.
 
Excellent!!

I didn't think making a batch file could be so easy!

Thanks alot.

i just have one last question then I won't bother you any more:)

How do I go about creating a scheduled task that runs weekly?

Many thanks

jim
 
Go to Programs > Accessories > System Tools > Scheduled Tasks. Launch Add Scheduled Task. A wizard will guide you to the whole setup process.

Btw, no bother whatsoever here. Happy to help :)
 
Back
Top