I want to execute a command in VB.NET. When I type this command in a dos-window, it works fine. When I execute exactly the same command in VB, it does NOT work.
I can NOT debug because than I get an error (Can't find the command).
When executing the command, I can see a dos-window open and disappear, but it is too fast to see anything.
How do I solve this?
Arguments = "klapper -u root -p**** > C:\temp\Dumpklapper.sql"
FileName = "MySqlDump.exe"
WorkingDirectory = "C:\Program Files\MySQL\MySQL Server 5.0\bin"
**** is the real pasword when I run.
I can NOT debug because than I get an error (Can't find the command).
When executing the command, I can see a dos-window open and disappear, but it is too fast to see anything.
How do I solve this?
Code:
Dim objProcess As New Process()
objProcess.StartInfo.WorkingDirectory = strCommandoLokatie
objProcess.StartInfo.FileName = strCommando
objProcess.StartInfo.Arguments = txtDatabase.Text & " -u " & txtUser.Text & " -p" & txtPassword.Text & " > " & strOutputLokatie & "\Dump" & txtDatabase.Text & IIf(chkData.Checked, "", "NoData") & ".sql"
objProcess.Start()
objProcess.Dispose()
Arguments = "klapper -u root -p**** > C:\temp\Dumpklapper.sql"
FileName = "MySqlDump.exe"
WorkingDirectory = "C:\Program Files\MySQL\MySQL Server 5.0\bin"
**** is the real pasword when I run.