0

I have this code which saves the dump file in a static path or destination

Process.Start("C:\xampp\mysql\bin\mysqldump.exe", "-u root ipoint -r C:\Backup\ipoint.sql")
 MsgBox("Backup Database Created")

I want to choose the path by using the folder browser dialog which will put the path on a textbox but this code below doesn't work

Dim path2 As String = tb_path.Text
Process.Start("C:\xampp\mysql\bin\mysqldump.exe", "-u root ipoint -r '" & path2 & "'\ipoint.sql")
 MsgBox("Backup Database Created")

Edited by easygi: n/a

2
Contributors
2
Replies
5
Views
5 Years
Discussion Span
Last Post by easygi
0

Do you get an error at all? Check the string value of path2 and make sure it is a valid path.

I use folderbrowser dialog, example I choose Desktop or some folder on my local disk D:, there is no error prompting, but there's no dump file created when I execute it

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.