Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
GeneralRe: Classes Pin
J4amieC27-Jul-06 5:16
J4amieC27-Jul-06 5:16 
GeneralRe: Classes Pin
Ennis Ray Lynch, Jr.27-Jul-06 5:29
Ennis Ray Lynch, Jr.27-Jul-06 5:29 
GeneralRe: Classes Pin
J4amieC27-Jul-06 5:59
J4amieC27-Jul-06 5:59 
GeneralRe: Classes Pin
Ennis Ray Lynch, Jr.27-Jul-06 6:11
Ennis Ray Lynch, Jr.27-Jul-06 6:11 
Questionhowto check datagridview's cell content ? help please ... Pin
cmpeng3427-Jul-06 2:51
cmpeng3427-Jul-06 2:51 
AnswerRe: howto check datagridview's cell content ? help please ... Pin
Mairaaj Khan27-Jul-06 3:23
professionalMairaaj Khan27-Jul-06 3:23 
AnswerRe: howto check datagridview's cell content ? help please ... Pin
Drew McGhie27-Jul-06 5:37
Drew McGhie27-Jul-06 5:37 
QuestionStartInfo.RedirectStandardOutput Pin
NewDev42427-Jul-06 2:31
NewDev42427-Jul-06 2:31 
Hi All,

I need to redirect command line output to a text file.
here is my code test.exe that takes test as a parametr.
Process p = new Process();
p.StartInfo.FileName = "C:\\test.exe";
p.StartInfo.Arguments = "Test";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardInput = false;
p.StartInfo.RedirectStandardError = false;
p.StartInfo.CreateNoWindow = true;
p.Start();
Console.WriteLine("output");
string output = p.StandardOutput.ReadToEnd();
Console.WriteLine(output);
p.WaitForExit(1000);
p.Close();

Issues is that I dont get the redirected output. test.exe is an app that writes all the printer events to the output window and can only be stopped with a break ctrl C.

Let me know what goin wrong. How do i redirct the output.I have also used > text.txt but in vain.

newdev
AnswerRe: StartInfo.RedirectStandardOutput Pin
Ennis Ray Lynch, Jr.27-Jul-06 3:43
Ennis Ray Lynch, Jr.27-Jul-06 3:43 
QuestionRe: StartInfo.RedirectStandardOutput Pin
NewDev42427-Jul-06 17:19
NewDev42427-Jul-06 17:19 
QuestionInstaller Question Pin
JacquesDP27-Jul-06 2:26
JacquesDP27-Jul-06 2:26 
QuestionDynamically change Row.ForeColor Pin
e_LA27-Jul-06 2:20
e_LA27-Jul-06 2:20 
AnswerRe: Dynamically change Row.ForeColor Pin
Not Active27-Jul-06 2:32
mentorNot Active27-Jul-06 2:32 
GeneralRe: Dynamically change Row.ForeColor Pin
e_LA27-Jul-06 2:49
e_LA27-Jul-06 2:49 
GeneralRe: Dynamically change Row.ForeColor Pin
e_LA27-Jul-06 3:23
e_LA27-Jul-06 3:23 
GeneralRe: Dynamically change Row.ForeColor Pin
e_LA27-Jul-06 23:53
e_LA27-Jul-06 23:53 
GeneralRe: Dynamically change Row.ForeColor Pin
Not Active28-Jul-06 1:13
mentorNot Active28-Jul-06 1:13 
QuestionObserver pattern in C# Pin
_mistika_27-Jul-06 2:18
_mistika_27-Jul-06 2:18 
AnswerRe: Observer pattern in C# Pin
Colin Angus Mackay27-Jul-06 2:19
Colin Angus Mackay27-Jul-06 2:19 
AnswerRe: Observer pattern in C# Pin
J4amieC27-Jul-06 2:21
J4amieC27-Jul-06 2:21 
QuestionConvert binary data to comma delimited string Pin
VK-Cadec27-Jul-06 2:00
VK-Cadec27-Jul-06 2:00 
AnswerRe: Convert binary data to comma delimited string Pin
darkelv27-Jul-06 2:18
darkelv27-Jul-06 2:18 
GeneralRe: Convert binary data to comma delimited string Pin
Guffa27-Jul-06 7:27
Guffa27-Jul-06 7:27 
QuestionOPENROWSET Problem ! Pin
coolestCoder27-Jul-06 1:50
coolestCoder27-Jul-06 1:50 
QuestionHow to insert picture into excel by c#? Pin
Mirjana_b27-Jul-06 1:27
Mirjana_b27-Jul-06 1:27 

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.