-
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
-
The program has to be running.
-
It sounds like you want to configure your application so that it doesn't show up in the task bar and loads automatically when you start the PC. Am I right?
There is a property you can set on the form not to have it displayed on the taskbar. Even better, you could create a form-less application.
If you install your application into the Programs/Start Up directory then it will always run.
Does this help?