Re: Windows service - Nightly task



Arun,

This would be overkill.

What you should do is create a command line exe which will make the call
once, and then do whatever work you need it to do.

Then, create a scheduled task to run every night at 10 PM and have it
call your executable.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

<arun.hallan@xxxxxxxxx> wrote in message
news:1158251891.196740.77410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I want to run a webservice method every night at a specified time, say
10pm.

The current way i thought of doing this is to have a windows service
and a timer which checks the time every minute and when it gets to
10:00 it fires off the webmethod.

Is this the best way to do it? If not, does anyone have any
suggestions?

Thanks,
Arun



.



Relevant Pages

  • Re: Windows service - Nightly task
    ... Are there any reliability issues around windows services? ... What you should do is create a command line exe which will make the call ... I want to run a webservice method every night at a specified time, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Disconnecting from a dial up connection
    ... Terminate your dial-up / PPPoE connection at a specified time using Task Scheduler: ... command line command to disconnect the modem from phone line. ...
    (microsoft.public.windowsxp.newusers)
  • Re: Automatic way of terminating a program
    ... You can use the "at" command if it's going to be for something specific (not ... with a end-of-line (here invoked with CTRL-D). ... There are many ways to invoke ...
    (Fedora)
  • Re: Grant computer access tousers by time of day
    ... so there is a way to restrict log on access but is ... there a way to log that person off at a specified time. ... What about using the "at" command through Scheduled Tasks? ... >Unsolicited e-mail is not answered. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: excel file opened automaticaly at specified time & date
    ... then try the Task Manager in the Control Panel. ... His job is to launch stuff at a specified time. ... There you will discover the AT command which will allow you launch commands ...
    (microsoft.public.excel.misc)