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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.