Re: How can I set an app to autorun?



Thanks Marina,

Anyhow, I learned that the scheduler only run .exe or .bat file. I am
not very familiar with the format of either of those file type. Does
anybody know where I can find examples of running a .net app from these
file? Thanks


nesster13@xxxxxxxxx wrote:
Thank you all for the reply. I will check them out.


Peter wrote:
I think it would be a real waste of resources to create a windows service
that runs all the time just to have it do something once in 24 hours.
Marina's suggestion of using Task Scheduler is to be preferred.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Demetri" wrote:

Build a Windows Service application. Windows Service apps run unattended.

The service would use a timer to check the current time. If the current time
is the time you
specified as the start time to execute your code then it will execute.

To build a Windows Service check out the following:

http://msdn2.microsoft.com/en-us/library/9k985bc9.aspx

Look also at the "See Also" section at the bottom for how to install a
windows service.

For the timer, take a peek at the Timer class in the System.Timers namespace.

http://msdn2.microsoft.com/en-us/library/system.timers.timer.aspx

--
-Demetri


"nesster13@xxxxxxxxx" wrote:

I am planning on creating an application that generate some kind of
report at a set time each day. say midnight. My question is, is there a
way to autorun that application without requiring a hit from user? I
have search around for the solution for a while and the closest I got
was somebody suggesting to use the System.Timer in the global.aspx.

http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/19655dc89d905a/504e8b8e6744111d?lnk=st&q=.net+auto+run+app&rnum=3&hl=en#504e8b8e6744111d

Now I have never use the timer before. Does anybody know how I can set
this up? Any help would be appreciated. Thanks



.



Relevant Pages

  • Re: How can I set an app to autorun?
    ... Peter wrote: ... To build a Windows Service check out the following: ... For the timer, take a peek at the Timer class in the System.Timers namespace. ... report at a set time each day. ...
    (microsoft.public.dotnet.framework.aspnet)
  • summary (Re: [patch] prefer TSC over PM Timer)
    ... and attempted to summarize the ... if timer_pm is fixed to read the PM timer only once on non-broken systems ... until/unless C3 and deeper resync tsc then it's best not to default to tsc ... can't be shared with scheduler if we add variable scheduler ticks ...
    (Linux-Kernel)
  • Re: fixed time slices?
    ... | to finish using its time slice), and assigns a full time slice ... become ready to run, and be scheduled on a CPU, when the scheduler is ... response to a timer interrupt or a call to a wait function (maybe other ... a timer-IRQ within wahtevr delay is desired. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: fixed time slices?
    ... high resolution timer(timeBeginPeriod), check ... to WFSO using an event that gets signaled just *after* WFSO ... NEVERTHELESS, as soon as a higher priority thread becomes ready to run, ... AFAIK the scheduler does not behave this way but if the scheduler planed ...
    (microsoft.public.win32.programmer.kernel)
  • Re: fixed time slices?
    ... to WFSO using an event that gets signaled just *after* WFSO ... NEVERTHELESS, as soon as a higher priority thread becomes ready to run, it ... Scheduler "ticks" only ... systems may also provide high-resolition interval timer, ...
    (microsoft.public.win32.programmer.kernel)