Link to home
Start Free TrialLog in
Avatar of koldjg
koldjg

asked on

Save file path problem with FileCopy

I need to backup the database i use with my windows form application.  Im have written the following code:
   
Private Sub UltraButton3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UltraButton3.Click
        Dim DBPath As String = My.Application.Info.DirectoryPath

        FileCopy(DBPath & "C:\Users\Database.accdb", "?")

        MsgBox("Backup Successful")

My problem is the user selects the path to backup and that path goes into textbox1.  How do i get the FileCopy function to use this path?
ASKER CERTIFIED SOLUTION
Avatar of Hamed Nasr
Hamed Nasr
Flag of Oman image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of koldjg
koldjg

ASKER

Wicked, Thanks a lot.
Welcome!