Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using List for combo box collection Pin
mprice2144-May-10 18:40
mprice2144-May-10 18:40 
GeneralRe: Using List for combo box collection Pin
Dan Mos4-May-10 18:56
Dan Mos4-May-10 18:56 
QuestionCalibration and Tolerance Pin
jokerleo4-May-10 17:32
jokerleo4-May-10 17:32 
AnswerRe: Calibration and Tolerance Pin
Luc Pattyn4-May-10 18:21
sitebuilderLuc Pattyn4-May-10 18:21 
GeneralRe: Calibration and Tolerance Pin
jokerleo4-May-10 20:11
jokerleo4-May-10 20:11 
GeneralRe: Calibration and Tolerance Pin
Luc Pattyn5-May-10 2:44
sitebuilderLuc Pattyn5-May-10 2:44 
GeneralRe: Calibration and Tolerance Pin
Dave Kreskowiak5-May-10 4:22
mveDave Kreskowiak5-May-10 4:22 
QuestionReading standardoutput to a file Pin
svanwass4-May-10 14:06
svanwass4-May-10 14:06 
I am trying to call a program that comverts BMP to PPM formats. The exe to do so dumps the binary contents of the conversion to the console unless redirected as such

bmptoppm.exe input.bmp >output.ppm


I am attempting to call this exe from inside a different windows forms application and save the ouput to output.ppm. I am doing so using the process class

<br />
                Process myProcess = new Process();<br />
<br />
                myProcess.StartInfo.UseShellExecute = false;<br />
                myProcess.StartInfo.Arguments = "C:\\input.bmp";<br />
                myProcess.StartInfo.FileName = "C:\\bmptoppm.exe";<br />
                myProcess.StartInfo.CreateNoWindow = false;<br />
                myProcess.StartInfo.RedirectStandardOutput = true;<br />
                myProcess.StartInfo.RedirectStandardError = true;<br />
                myProcess.Start();<br />
                //file writing code here?<br />


I am getting hung on on how exactly I can do the writing of the standardoutput to a file. Could someone point me in the right direction please?
AnswerRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 14:54
Dan Mos4-May-10 14:54 
GeneralRe: Reading standardoutput to a file Pin
svanwass4-May-10 15:00
svanwass4-May-10 15:00 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 16:21
Dan Mos4-May-10 16:21 
GeneralRe: Reading standardoutput to a file Pin
Luc Pattyn4-May-10 16:37
sitebuilderLuc Pattyn4-May-10 16:37 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 16:51
Dan Mos4-May-10 16:51 
GeneralRe: Reading standardoutput to a file Pin
Luc Pattyn4-May-10 17:00
sitebuilderLuc Pattyn4-May-10 17:00 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 17:06
Dan Mos4-May-10 17:06 
GeneralRe: Reading standardoutput to a file Pin
Luc Pattyn4-May-10 17:09
sitebuilderLuc Pattyn4-May-10 17:09 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 17:14
Dan Mos4-May-10 17:14 
GeneralRe: Reading standardoutput to a file Pin
Dan Mos4-May-10 17:15
Dan Mos4-May-10 17:15 
GeneralRe: Reading standardoutput to a file Pin
svanwass5-May-10 6:46
svanwass5-May-10 6:46 
QuestionASP.Net MVC2 for VS 2010 Pin
Darrall4-May-10 9:27
Darrall4-May-10 9:27 
AnswerRe: ASP.Net MVC2 for VS 2010 Pin
hammerstein054-May-10 11:32
hammerstein054-May-10 11:32 
GeneralRe: ASP.Net MVC2 for VS 2010 Pin
Darrall4-May-10 13:00
Darrall4-May-10 13:00 
AnswerRe: ASP.Net MVC2 for VS 2010 Pin
justinonday19-Oct-10 23:06
justinonday19-Oct-10 23:06 
QuestionNeed help in updating an Image datatype in SQL Server Pin
mike_electron4-May-10 8:02
mike_electron4-May-10 8:02 
AnswerRe: Need help in updating an Image datatype in SQL Server Pin
T M Gray4-May-10 8:14
T M Gray4-May-10 8:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.