Re: How can I set an app to autorun?



A .net application is an executable. It compiles to a .exe.

What do you think a .net application compiles to?

<nesster13@xxxxxxxxx> wrote in message
news:1152303895.074197.75980@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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

  • system.timers.timer not working on windows server 2003.
    ... windows service. ... I have one function which i want to execute once day. ... timer started giving me problem. ... Instead of firing elapsed event once a day, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How can I set an app to autorun?
    ... and execute it with Task Scheduler, unless you want to run an executable directly. ... that it compiles to .exe file. ... To build a Windows Service check out the following: ... For the timer, take a peek at the Timer class in the System.Timers ...
    (microsoft.public.dotnet.framework.aspnet)
  • Timer in Windows Service fires eratically when interval elapsed
    ... I have written a Windows Service with a Timer. ... In the Timer1_Elapsed event I execute a task. ... Problem is that the elapsed event fires anywhere from 1 time to 40 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Timer in Windows Service fires eratically when interval elapsed
    ... Roland wrote: ... > I have written a Windows Service with a Timer. ... > In the Timer1_Elapsed event I execute a task. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: OT: EXE files in HTML?
    ... >>> I would like to be able to put an EXE file at my Web ... > I would hope that it would download temporarily and execute ... some of the photos. ...
    (alt.usage.english)