Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use a key in md5 algorithm in c# Pin
harold aptroot21-Feb-14 1:44
harold aptroot21-Feb-14 1:44 
AnswerRe: how to use a key in md5 algorithm in c# Pin
AmitGajjar23-Feb-14 18:48
professionalAmitGajjar23-Feb-14 18:48 
Questionweb browser Pin
Member 1045906320-Feb-14 23:42
Member 1045906320-Feb-14 23:42 
AnswerRe: web browser Pin
OriginalGriff21-Feb-14 0:07
mveOriginalGriff21-Feb-14 0:07 
GeneralRe: web browser Pin
AmitGajjar23-Feb-14 18:53
professionalAmitGajjar23-Feb-14 18:53 
Questionweb browser Pin
Member 1045906320-Feb-14 23:41
Member 1045906320-Feb-14 23:41 
QuestionQuestion Pin
Member 1061429620-Feb-14 23:18
Member 1061429620-Feb-14 23:18 
AnswerRe: Question Pin
Richard MacCutchan20-Feb-14 23:22
mveRichard MacCutchan20-Feb-14 23:22 
AnswerRe: Question Pin
Garth J Lancaster20-Feb-14 23:26
professionalGarth J Lancaster20-Feb-14 23:26 
AnswerRe: Question Pin
Marco Bertschi21-Feb-14 1:16
protectorMarco Bertschi21-Feb-14 1:16 
Questionhow to implement md5 algorithm in c# Pin
rincy sivan20-Feb-14 23:11
rincy sivan20-Feb-14 23:11 
AnswerRe: how to implement md5 algorithm in c# Pin
Member 1061429620-Feb-14 23:21
Member 1061429620-Feb-14 23:21 
AnswerRe: how to implement md5 algorithm in c# Pin
Richard MacCutchan20-Feb-14 23:23
mveRichard MacCutchan20-Feb-14 23:23 
AnswerRe: how to implement md5 algorithm in c# Pin
Pete O'Hanlon20-Feb-14 23:50
mvePete O'Hanlon20-Feb-14 23:50 
AnswerRe: how to implement md5 algorithm in c# Pin
OriginalGriff21-Feb-14 0:10
mveOriginalGriff21-Feb-14 0:10 
GeneralRe: how to implement md5 algorithm in c# Pin
AmitGajjar23-Feb-14 19:02
professionalAmitGajjar23-Feb-14 19:02 
QuestionInsert Multi Rows from Datagridview to another datagridview Pin
haipt23220-Feb-14 23:03
haipt23220-Feb-14 23:03 
AnswerRe: Insert Multi Rows from Datagridview to another datagridview Pin
Richard MacCutchan20-Feb-14 23:27
mveRichard MacCutchan20-Feb-14 23:27 
GeneralRe: Insert Multi Rows from Datagridview to another datagridview Pin
haipt23221-Feb-14 0:08
haipt23221-Feb-14 0:08 
SuggestionRe: Insert Multi Rows from Datagridview to another datagridview Pin
Eddy Vluggen21-Feb-14 0:28
professionalEddy Vluggen21-Feb-14 0:28 
GeneralRe: Insert Multi Rows from Datagridview to another datagridview Pin
Richard MacCutchan21-Feb-14 0:30
mveRichard MacCutchan21-Feb-14 0:30 
QuestionHow do i load a XML data to a Combobox? Pin
Member 1061426220-Feb-14 22:24
Member 1061426220-Feb-14 22:24 
AnswerRe: How do i load a XML data to a Combobox? Pin
Wayne Gaylard20-Feb-14 22:37
professionalWayne Gaylard20-Feb-14 22:37 
QuestionThreading and system.diagnostics Pin
Syed Ata-Ur-Rehman20-Feb-14 9:56
Syed Ata-Ur-Rehman20-Feb-14 9:56 
Hi Every body.

I have a scenario in which I have to send series of commands to command prompt. I have achieved It almost using system.diagnostics.Process but when I execute my program in windows XP, it does not behave propely as it behaves in Windows 7.
I am trying to open other applications in interactive mode.Honestly I am able to do it in windows 7 but in win XP process are just started and lives in background. as soon as I close the console they begins to launch one by one. There is something missing in my code which is not letting them launch(Problem is Only in XP).

Following are the steps I'm doing in C# code.

Step #1: Opening command prompt

C#
using (Process process = new Process())
    {
        process.StartInfo.UseShellExecute = false;
        process.StartInfo.RedirectStandardOutput = true;
        process.StartInfo.RedirectStandardError = true;
        process.StartInfo.WorkingDirectory = @"C:\";
        process.StartInfo.FileName = Path.Combine(Environment.SystemDirectory, "cmd.exe");

        // Redirects the standard input so that commands can be sent to the shell.
        process.StartInfo.RedirectStandardInput = true;
        // Runs the specified command and exits the shell immediately.
        //process.StartInfo.Arguments = @"/c ""dir""";

        process.OutputDataReceived += ProcessOutputDataHandler;
        process.ErrorDataReceived += ProcessErrorDataHandler;

        process.Start();
        process.BeginOutputReadLine();
        process.BeginErrorReadLine();

        // Send a directory command and an exit command to the shell

    }


Step 2: Giving commands one by one by using standard input.


I need you people to correct me if I am going in wrong direction.
Please help me identify the problem that who is blocking programs and why they are launching after closing console
AnswerRe: Threading and system.diagnostics Pin
Dave Kreskowiak20-Feb-14 13:15
mveDave Kreskowiak20-Feb-14 13:15 

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.