Results 1 to 3 of 3

Thread: Saving Files?

  1. #1

    Thread Starter
    Lively Member flog3941's Avatar
    Join Date
    Nov 2002
    Posts
    123

    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

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    The program has to be running.
    Dont gain the world and lose your soul

  3. #3
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    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
  •  



Click Here to Expand Forum to Full Width