Link to home
Start Free TrialLog in
Avatar of dudup
dudup

asked on

Daily, Weekly, Monthly, Yearly

Hi,

What is the best way to create a procedure that will perform a task daily, weekly, monthly and yearly ?

I assume that daily will be performed right after midnight, weekly will be performed on monday morning after sunday midnight, monthly will be performed after end of month, yearly will be performed after end of december.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of 2266180
2266180
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kristao
Kristao

Shedule Task using othere App to run yours App? Can't see sence in there. This app what is needed to be created is easy as Calculator.

put a timer on form and check the time every second if the time is biger than 00:00 thats meens you need to check daily tasks and check isn't there end of week or end of month or end of year.

if DayOf(Now)= 1 then check weekly tasks
if MonthOf(Now)=1 then check yearly tasks

an so on.
Schedule Tasks is integrated inside Windows some service of the operating system takes care of running your apps when you want it.

There is no application with a higher up-time then the operating system so why not use it to run your app.

The self written app does not have to stay up this way for more than a year. It just needs to get fired up by the operating system.

Regards Jacco