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")

Recommended Answers

All 2 Replies

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.