I use Visual studio 2008
I use MYSQL 5.1
I want only to backup database Test to to a specific directory.
I use the application settings to determine which directory(see attachment).
Green shaded code works perfect.
Red shaded code works not!! This is with My.settings.
I can not see the error code, it goes too fast, I can not capture this with:
Try
Catch ex As Exception
MsgBox (ex.Message)
End Try
Can someone tell my what is wrong or what I need to change so it works?
Thanks,
Andre
Process.Start("C:/Program Files/MySQL/MySQL Server 5.1/bin/mysqldump.exe", " --host=localhost --user=my --password=12345 --databases test > -r ""c:\backup\backup.sql"" ")
Process.Start("C:/Program Files/MySQL/MySQL Server 5.1/bin/mysqldump.exe", " --host=localhost --user=my --password=12345 --databases test > -r ""My.Settings.Locbackup""")