Copy file from one folder to another folder

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CoachBarker
    New Member
    • Jul 2007
    • 18

    Copy file from one folder to another folder

    I have an application that captures a video and saves it as a wmv file to a local folder. What I need to be able to is that on the click of the button that will stop the video and save it to the local folder, (that part works) I also need to be able to save a copy of the file to a remote folder. Any ideas to help me out?

    Thanks
    CoachBarker
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Is a windows share (or samba in the unix case) set up on the remote location with the correct folder shared with correct permissions(rea d/write/whatever)?

    What error are you getting?

    Comment

    • CoachBarker
      New Member
      • Jul 2007
      • 18

      #3
      No error message a, it just won't copy the file. This is in vb.net and yes there are shares set up.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        What are you using for code?

        Comment

        • CoachBarker
          New Member
          • Jul 2007
          • 18

          #5
          Originally posted by Plater
          What are you using for code?
          I am using this line of code
          System.IO.File. Move(captureFil eName, frmMain.Options .txtRemotePath. Text)

          where captureFileName is a global variable that stores the value for the local path
          and frmMain.Options .txtRemotePath. Text is the form and the control I am getting the Remote path from

          Comment

          • CoachBarker
            New Member
            • Jul 2007
            • 18

            #6
            Originally posted by CoachBarker
            I am using this line of code
            System.IO.File. Move(captureFil eName, frmMain.Options .txtRemotePath. Text)

            where captureFileName is a global variable that stores the value for the local path
            and frmMain.Options .txtRemotePath. Text is the form and the control I am getting the Remote path from
            I got it to work thanks for the help anyways.

            Comment

            Working...