I am using the following statements:
[c]
Dim ps As New ProcessStartInfo("C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump.exe", "-u root -pchecli02 myacct")
ps.UseShellExecute = False
ps.RedirectStandardOutput = True
Dim p As Process
p = New Process
p.StartInfo = ps
p.Start()
Dim sw As New System.IO.StreamWriter("C:\test23.sql")
sw.Write(p.StandardOutput.ReadToEnd())
p.WaitForExit()
[/c]
Is there anyway to encrypt this streamwriter to a file instead of writing to the file and then encrypting the file and writing it back down?
Thanks, Chester
[c]
Dim ps As New ProcessStartInfo("C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqldump.exe", "-u root -pchecli02 myacct")
ps.UseShellExecute = False
ps.RedirectStandardOutput = True
Dim p As Process
p = New Process
p.StartInfo = ps
p.Start()
Dim sw As New System.IO.StreamWriter("C:\test23.sql")
sw.Write(p.StandardOutput.ReadToEnd())
p.WaitForExit()
[/c]
Is there anyway to encrypt this streamwriter to a file instead of writing to the file and then encrypting the file and writing it back down?
Thanks, Chester