Help! I want to shell to cmd.exe and run a mysql command. This works fine when running in the the VS debugger, but the cmd shell either doesn't launch, or doesn't get the standardInput characters when I run my .exe outside of the debugger. The code I want to work is:
Dim myproc As System.Diagnostics.Process
myproc = New System.Diagnostics.Process()
myproc.EnableRaisingEvents = False
myproc.StartInfo.FileName = "cmd.exe"
myproc.StartInfo.RedirectStandardInput = True
myproc.StartInfo.UseShellExecute = False
myproc.Start()
myproc.StandardInput.WriteLine("mysqldump " + DataFileName + " -u root -pspa -r " + Chr(34) + SignalFileName + Chr(34))
This seems very weird. Any help is greatly appreciated.
Thanks

App works in debugger, not otherwise
bstoker
Thanks again
JohnTMSDN
myproc.StartInfo.Filename = "cmd.exe"
myproc.StartInfo.Arguments = "/c mysqldump " + DataFileName + ....
myproc.Start()
chris house