Re: how to write this program

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bob Grommes (bob_at_bobgrommes.com)
Date: 03/19/04


Date: Fri, 19 Mar 2004 12:25:41 -0700

You can simply execute the program from the Windows Scheduler every 15
minutes.

You could write it as a Windows Service, and in between each execution of
its task, call Thread.Sleep(TimeSpan.FromMinutes(15))

Probably there are other ways as well; it depends on what you're trying to
accomplish, what else (if anything) the task needs to interact with and
whether or not it needs to interace with the user at all.

--Bob

"Afei" <mailtoyaofei@yahoo-dot-com.no-spam.invalid> wrote in message
news:405b2523$1_2@Usenet.com...
> hi,
> I want to write a program that every some specific time(say, 15
> minutes) do something. But i am out of mind how to do it? Should i
> use threads or some other technologies?
>
> Thanks.



Relevant Pages

  • [Full-disclosure] Re: another filename bypass vulnerability - fromcmd.exe
    ... #MW> other malware that can interact with cmd.exe. ... but how can it interact when it doesn't execute using ... adrianalima.gif will end up in the temporary internet files...No download ... script in the html (cuz its crosszone) can then search the temporary IE ...
    (Full-Disclosure)
  • Re: Reading my own bashrc in a remote ssh host
    ... to make any change to the remote system. ... The script will execute ... One could write script that reads the .bashrc file and create ...
    (comp.os.linux.misc)
  • Re: Failing wss 3.0 backup scripts
    ... but fails when used with Windows scheduler or SQL Server agent ... Set objFsoFolder = CreateObject ... The script run's fine when I execute it, its when I use the scheduler ...
    (microsoft.public.sharepoint.windowsservices)
  • Dynamic method execution problem
    ... I have been trying to figure out a way to execute a series of methods, ... only 1 of which is expected to actually run without exception, ... with argument passing, calling the right method, and so on.) ... information, I'm using the Watir test library, and I want to interact ...
    (comp.lang.ruby)
  • Unexpected behaviour of methods when executed.
    ... I have referenced a COM dll in my .NET assembly. ... When I execute functions that interact with the ... database, the insertions into database are unpredictable. ... still keep the queries in queue and execute it when there is enough memory. ...
    (microsoft.public.dotnet.framework.interop)