Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
assalamualaikum...
i want to kno is there any function will can execute automatically by itself after every 24 hours????????????????
Posted
Comments
Sandeep Mewara 15-Jul-10 1:46am    
Don't expect for full code.
Try first. Answers below are enough to proceed and start off.

You can use the windows task scheduler to schedule any task.

Control Panel -> Scheduled Tasks -> Add Scheduled Task
 
Share this answer
 
Comments
khaula 2 14-Jul-10 1:06am    
ahan...but i cant find schedule task...kindly elaborate where can i find schedule task...
Hi,
First of all make sure your question was clear. There are many ways to execute a function itself but depends on the requirement in the application.So give more information regarding ur query.
 
Share this answer
 
Comments
khaula 2 14-Jul-10 1:11am    
i want to kno that is there any function or method(in the form of code),which execute itself after every 24 hours by itself....i am guessing that such function must contain some system:time or something like that....or i guess we should set the time in the function to make it execute automatically after every 24 hours??
can u help???
Your requirement fits in for a need of Windows Service.

After a defined/specific interval of time a method can be executed using the same.

read about Windows Service:
MSDN: Windows Service[^]
Simple Windows Service Sample[^]
 
Share this answer
 
Comments
khaula 2 15-Jul-10 1:41am    
this is the whole project...i want one function which is not event dependent...but will automatically execute after every 24 hours.....
can u help???
i cant find it...
Sandeep Mewara 15-Jul-10 1:44am    
What i told is perfectly fine. No one will provide you the whole code. Windows service will do for you. Read about it and implement it. If you face issue while implementing it then post specific issue. Though the links given by me are more then enough to create and use it.
khaula 2 15-Jul-10 2:04am    
ok..thanx alot:):)
i cant find the "ADD INSTALLER" link which you said is in the properties window........can u help????
:)
Sandeep Mewara 15-Jul-10 2:08am    
Sorry! When did i said that. Did you looked at the links?
khaula 2 15-Jul-10 2:40am    
that is on the second link...."simple windows service sample"..
after writing onstop and oncontinue....because i cant fine addinstall option..do i have to install it ????????????????????

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900