cpopham Posted July 22, 2005 Posted July 22, 2005 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 Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
IngisKahn Posted July 23, 2005 Posted July 23, 2005 System.Security.Cryptography.CryptoStream should do what you need. Quote "Who is John Galt?"
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.