|
-
Sep 14th, 2000, 09:22 AM
#1
Thread Starter
Addicted Member
I have a program that runs an archiving routine. I want to give the user the option to schedule the program for a certain time every day. How do I go about this??
Or how do I access the windows schedular from my program??
Thanks for any suggestions
[Edited by kanejone on 09-14-2000 at 10:39 AM]
-
Sep 14th, 2000, 09:39 AM
#2
transcendental analytic
In a timer place
Code:
static flag as boolean, old as integer
If not flag then
if hour(now)>=8 and minute(now)>=17 and second(now) >=22 then
'run your thing
flag=true
end if
else
if hour(now)<old then
flag=false
end if
old=hour(now)
end if
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 14th, 2000, 09:45 AM
#3
Thread Starter
Addicted Member
Thanks a lot for that. Is there any way to let the user set the time????
-
Sep 14th, 2000, 09:55 AM
#4
transcendental analytic
Yep, you could have a inputbox asking for the date, use isdate function to determine if it's valid, and then compare the dates in the procdure i gave you:
Code:
if hour(now)>=hour(yourdate) and minute(now)>=minute(yourdate) and second(now) >=second(yourdate) then
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 14th, 2000, 09:59 AM
#5
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|