|
-
Dec 6th, 2002, 08:28 PM
#1
Thread Starter
Lively Member
Saving Files?
I am trying to copy a file to another location automatically. Can this happen without the program running?What I have now works only if the program is running.
Heres what I have:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Timer1.Tick
If DateTime.Now.Hour = 19 And DateTime.Now.TimeOfDay.Minutes = 22 And DateTime.Now.TimeOfDay.Seconds = 0 Then
Dim fnam As String = System.DateTime.Today.ToShortDateString & ".tst"
fnam = fnam.Replace("/", "_")
File.Copy("C:\Program Files\TAK Software\Time Clock\tim.tst", "C:\Documents and Settings\Owner\My Documents\Tim\Tim" & fnam, True)
End If
End Sub
This Code copies the file at 7:22:00
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
|