Click here to Skip to main content
15,884,605 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i send io stream to specific USB Pin
Paladin20003-Feb-11 3:33
Paladin20003-Feb-11 3:33 
GeneralRe: How can i send io stream to specific USB Pin
Dave Kreskowiak3-Feb-11 3:46
mveDave Kreskowiak3-Feb-11 3:46 
QuestionHow to get a list of all the APIs exposed by a web service? Pin
Aseem Sharma2-Feb-11 22:33
Aseem Sharma2-Feb-11 22:33 
AnswerRe: How to get a list of all the APIs exposed by a web service? Pin
Ray Cassick3-Feb-11 5:39
Ray Cassick3-Feb-11 5:39 
QuestionProblem with multirow selection in DataGridView control Pin
sandeepkavade2-Feb-11 22:14
sandeepkavade2-Feb-11 22:14 
QuestionHow to run a Command and retrieve data from it ? Pin
All Time Programming2-Feb-11 21:01
All Time Programming2-Feb-11 21:01 
AnswerRe: How to run a Command and retrieve data from it ? Pin
Richard MacCutchan2-Feb-11 21:58
mveRichard MacCutchan2-Feb-11 21:58 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming2-Feb-11 22:38
All Time Programming2-Feb-11 22:38 
I am tying to connect to server via cmd. Server keeps on giving output. Suppose the server gave output as : Trying to start ..... Cananot load file ..... Exiting OR
Trying to start ..... Authenticating... Some thing ..... More.... Else,.......... keeps on going

While retrieving the output, I want to check for lines like "Cannot find file", "Connected Successfully, etc and set properties ccordingly (like connected = true, errorMsg = "Cannot find file". Where I am calling the class, I can take care of those proeprties and stop if found connected == true or errorMsg.length > 0. With this inform the user that "Connection is achieved or error msg stating regarding "Cannot load file" and disconnect the server if errorMsg found.

try
{
process = Process.Start(processInfo);

process.BeginOutputReadLine();

I start the process, now got to <b>check the output while the process is already running</b>. That checking part am stuck up with. Process mostly wont Exit normally, I got to exit it. I mean just dir and got results ans process is exited - nothing like that. command keeps on giving output lines. To stop the server, I got to press "F4" on command prompt. How do I stop from here.


Thanks & Regards,


AnswerRe: How to run a Command and retrieve data from it ? Pin
Pravin Patil, Mumbai2-Feb-11 22:17
Pravin Patil, Mumbai2-Feb-11 22:17 
AnswerRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 0:00
mveOriginalGriff3-Feb-11 0:00 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 1:02
All Time Programming3-Feb-11 1:02 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 1:11
mveOriginalGriff3-Feb-11 1:11 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 1:24
All Time Programming3-Feb-11 1:24 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 1:30
mveOriginalGriff3-Feb-11 1:30 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 2:02
All Time Programming3-Feb-11 2:02 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 2:30
mveOriginalGriff3-Feb-11 2:30 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 2:49
All Time Programming3-Feb-11 2:49 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 3:01
mveOriginalGriff3-Feb-11 3:01 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 3:17
All Time Programming3-Feb-11 3:17 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 2:56
All Time Programming3-Feb-11 2:56 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 3:06
mveOriginalGriff3-Feb-11 3:06 
GeneralRe: How to run a Command and retrieve data from it ? [modified] Pin
All Time Programming3-Feb-11 3:27
All Time Programming3-Feb-11 3:27 
AnswerRe: How to run a Command and retrieve data from it ? Pin
PIEBALDconsult3-Feb-11 1:44
mvePIEBALDconsult3-Feb-11 1:44 
QuestionPrint Settings for ReportViewer pogrammatically Pin
freshonlineMax2-Feb-11 18:24
freshonlineMax2-Feb-11 18:24 
GeneralRe: Print Settings for ReportViewer pogrammatically Pin
Praveen Raghuvanshi2-Feb-11 19:07
professionalPraveen Raghuvanshi2-Feb-11 19:07 

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.