Re: How can I set an app to autorun?



Sorry, I do not have very much experience with .net and so did not know
that it compiles to .exe file. When I navigate to the folder that the
application was stored, under the wwwroot folder, I cannot file any
file that has the .exe extention. Do I have to do something to create
the .exe file? Thanks


Marina Levit [MVP] wrote:
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

  • 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)
  • Re: How to properly collaborate on creating PPT files?
    ... Linking is a terrific way to maintain autonomy and be able to work on ... folder, they ... TRANSPORT TOGETHER: If you place the files into a zip file, ... Or you can actually place the .exe file you create into ...
    (microsoft.public.powerpoint)
  • Re: deploy window application
    ... folder. ... "Samuel Shulman" wrote: ... So if .Net 2.0 install on destination PC, just copy app's .exe file ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Alleged virus I cant detect
    ... the infection may have ... leads me to believe that the name is a random selection of numbers and letters. ... I search for the EXE file and find that it is happily living in the C:\WINDOWS\TEMP ... When I stop the service the EXE file in the windows\temp folder mysteriously ...
    (microsoft.public.security.virus)
  • Re: Download
    ... Well, you didn't tell us much, so some guessing is required as to just what ... If an exe file was fully downloaded, just use Windows Explorer to find it, ... tell it to Save it to my default \Download folder. ... Microsoft Windows MVP ...
    (microsoft.public.windowsxp.general)