The easy way:
Write a VB program to copy the file, then under NT/2000 use the AT command to call it each day.
The hard way:
Write a VB program that runs all the time, watching the clock.
[tt]
Dim sTimeOnly as String
Do
[tab]DoEvents
[tab]sTimeOnly = Format$(now, "hh:nn:ss" ' 24 hour time
[tab]If sTimeonly = "14:30:00" Then
[tab][tab]'Time to run
[tab]End If
Loop
[/tt]
Note that this code is very inefficient, as it is continually checking the time (i.e. it's hammering your system). A better solution would be to check the time only every 10 minutes or so. Use a timer control to delay between checking.
Yes, the task scheduler. I think there's a new GUI around it in 2000, but I learned under NT 3.51, so I still use it via command-line.
Click on Start | Help, then search for "at command, using the at command" to get the online help for it. Note that you can also schedule jobs to run on remote computers.
You can be clever and surround several commands in a .cmd file, then schedule the command (batch) file to run.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.