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.Direct oryPath
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?
Private Sub UltraButton3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UltraButton3.Click
Dim DBPath As String = My.Application.Info.Direct
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Welcome!
ASKER