|
-
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
-
Dec 6th, 2002, 11:10 PM
#2
Frenzied Member
The program has to be running.
Dont gain the world and lose your soul
-
Dec 9th, 2002, 05:53 AM
#3
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?
This world is not my home. I'm just passing through.
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
|