Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passage of events between WinForms [Solved] Pin
Mario 5621-Mar-14 6:56
Mario 5621-Mar-14 6:56 
QuestionConvert HTML content to Rtf format or save it into Rtf file without the help of interop dll in c# Pin
Member 1068161419-Mar-14 19:09
Member 1068161419-Mar-14 19:09 
AnswerRe: Convert HTML content to Rtf format or save it into Rtf file without the help of interop dll in c# Pin
Eddy Vluggen20-Mar-14 6:34
professionalEddy Vluggen20-Mar-14 6:34 
Questionc# Transform a pictureBox Pin
Ron Wensley19-Mar-14 14:06
professionalRon Wensley19-Mar-14 14:06 
AnswerRe: c# Transform a pictureBox Pin
Dave Kreskowiak19-Mar-14 14:30
mveDave Kreskowiak19-Mar-14 14:30 
GeneralRe: c# Transform a pictureBox Pin
Ron Wensley19-Mar-14 15:03
professionalRon Wensley19-Mar-14 15:03 
GeneralRe: c# Transform a pictureBox Pin
Dave Kreskowiak19-Mar-14 17:10
mveDave Kreskowiak19-Mar-14 17:10 
QuestionProblem with process.startinfo Pin
turbosupramk319-Mar-14 7:09
turbosupramk319-Mar-14 7:09 
I'm trying to capture the output of a Dell executable command, racadm.exe. I can go to the cmd prompt and type in "racadm.exe getsysinfo" and get an output, but when I try to do this programmatically, it is not working. I can also programmatically use the code block below to get a directory listing, but with this specific exe, I cannot capture the standardoutput.

Any ideas on what I'm doing wrong?


System.Diagnostics.Process si = new System.Diagnostics.Process();
                si.StartInfo.WorkingDirectory = "c:\\";
                si.StartInfo.UseShellExecute = false;
                si.StartInfo.FileName = "cmd.exe";
                si.StartInfo.Arguments = "/c" + " racadm.exe" + " getsysinfo";
                si.StartInfo.CreateNoWindow = true;
                si.StartInfo.RedirectStandardInput = true;
                si.StartInfo.RedirectStandardOutput = true;
                si.StartInfo.RedirectStandardError = true;
                si.Start();
                string output = si.StandardOutput.ReadToEnd();
                si.Close();
                MessageBox.Show(output);


/* // this works below

                System.Diagnostics.Process si = new System.Diagnostics.Process();
                si.StartInfo.WorkingDirectory = "c:\\";
                si.StartInfo.UseShellExecute = false;
                si.StartInfo.FileName = "cmd.exe";
                si.StartInfo.Arguments = "/c dir";
                si.StartInfo.CreateNoWindow = true;
                si.StartInfo.RedirectStandardInput = true;
                si.StartInfo.RedirectStandardOutput = true;
                si.StartInfo.RedirectStandardError = true;
                si.Start();
                string output = si.StandardOutput.ReadToEnd();
                si.Close();
                MessageBox.Show(output);

AnswerRe: Problem with process.startinfo Pin
Richard Deeming19-Mar-14 7:28
mveRichard Deeming19-Mar-14 7:28 
GeneralRe: Problem with process.startinfo Pin
turbosupramk319-Mar-14 7:33
turbosupramk319-Mar-14 7:33 
SuggestionRe: Problem with process.startinfo Pin
Richard MacCutchan19-Mar-14 7:30
mveRichard MacCutchan19-Mar-14 7:30 
GeneralRe: Problem with process.startinfo Pin
turbosupramk319-Mar-14 7:35
turbosupramk319-Mar-14 7:35 
GeneralRe: Problem with process.startinfo Pin
Richard MacCutchan19-Mar-14 8:20
mveRichard MacCutchan19-Mar-14 8:20 
AnswerRe: Problem with process.startinfo Pin
Eddy Vluggen19-Mar-14 8:09
professionalEddy Vluggen19-Mar-14 8:09 
GeneralRe: Problem with process.startinfo Pin
turbosupramk319-Mar-14 8:26
turbosupramk319-Mar-14 8:26 
AnswerRe: Problem with process.startinfo Pin
Eddy Vluggen20-Mar-14 10:20
professionalEddy Vluggen20-Mar-14 10:20 
GeneralRe: Problem with process.startinfo Pin
turbosupramk320-Mar-14 10:29
turbosupramk320-Mar-14 10:29 
GeneralRe: Problem with process.startinfo Pin
Eddy Vluggen20-Mar-14 10:43
professionalEddy Vluggen20-Mar-14 10:43 
AnswerRe: Problem with process.startinfo Pin
BobJanova20-Mar-14 8:07
BobJanova20-Mar-14 8:07 
GeneralRe: Problem with process.startinfo Pin
turbosupramk320-Mar-14 10:30
turbosupramk320-Mar-14 10:30 
QuestionWPF how I can divide in pages the data of a datagrid Pin
Federico Barbieri19-Mar-14 6:05
Federico Barbieri19-Mar-14 6:05 
AnswerRe: WPF how I can divide in pages the data of a datagrid Pin
Simon_Whale19-Mar-14 6:36
Simon_Whale19-Mar-14 6:36 
QuestionRe: WPF how I can divide in pages the data of a datagrid Pin
Richard MacCutchan19-Mar-14 7:22
mveRichard MacCutchan19-Mar-14 7:22 
AnswerRe: WPF how I can divide in pages the data of a datagrid Pin
Pete O'Hanlon19-Mar-14 7:25
mvePete O'Hanlon19-Mar-14 7:25 
GeneralRe: WPF how I can divide in pages the data of a datagrid Pin
Federico Barbieri19-Mar-14 22:11
Federico Barbieri19-Mar-14 22:11 

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.