|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
30 Day Timer
How do I setup a timer to disable my application say 30 days after it was first run ?
Thanks, Phil. |
|
#2
|
||||
|
||||
|
You could store the date/time of when your app is first run, as a value in the registry.
|
|
#3
|
|||
|
|||
|
Re:
If you don't want to use the registry and the date functions, just set the interval property of your timer to 60000 and in the Timer function use a conter
iCount = iCount + 1 When iCount is equal to 30 * 60 * 24 end your application |
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
|||
|
|||
|
well, yes, I suposed that was the goal...
I don't know exactly what the application do... Sorry... |
|
#6
|
||||
|
||||
|
Santi, what happens when the computer reboots? =P
You could make use of Windows Task Scheduler. Check out AT.exe: http://www.microsoft.com/windows200...ver/help/at.htm |
|
#7
|
|||
|
|||
|
You're all right, i just thought the purpose was to be some service in a server... never mind... neither thought it could be for licensing
As i'm dealing with services now,i can only think about them... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > 30 Day Timer |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|