Please Help! Application OutPut Extracting

This is a discussion on Please Help! Application OutPut Extracting within the C# Programming forums, part of the General Programming Boards category; Is that how you extract the output after running an application? Anyone know how come it is not working? TRM.StartInfo.FileName ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    2

    Please Help! Application OutPut Extracting

    Is that how you extract the output after running an application?
    Anyone know how come it is not working?

    TRM.StartInfo.FileName = "trm.exe";
    TRM.StartInfo.Arguments = "\"" + FilePathName + "\"";

    TRM.StartInfo.UseShellExecute = false;
    TRM.StartInfo.RedirectStandardOutput = true;

    TRM.Start();
    string output = TRM.StandardOutput.ReadToEnd();
    return output;

    Thanks a lot

  2. #2
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    Code:
    TRM.StartInfo.FileName = "trm.exe";
    TRM.StartInfo.Arguments = "\"" + FilePathName + "\"";
    
    TRM.StartInfo.UseShellExecute = false;
    TRM.StartInfo.RedirectStandardOutput = true;
    
    TRM.Start();
    string output = TRM.StandardOutput.ReadToEnd();
    TRM.WaitForExit();
    return output;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. execl()/fork() output
    By tadams in forum C Programming
    Replies: 19
    Last Post: 02-04-2009, 02:29 PM
  2. Gnome GTK / Spawn CLI app - read output
    By MtOzOr in forum Linux Programming
    Replies: 7
    Last Post: 09-08-2008, 06:41 AM
  3. creating an application
    By Cpro in forum C++ Programming
    Replies: 21
    Last Post: 05-30-2008, 12:21 AM
  4. Output problems with structures
    By Gkitty in forum C Programming
    Replies: 1
    Last Post: 12-16-2002, 04:27 AM
  5. sorting output on student info program
    By indigo0086 in forum C++ Programming
    Replies: 2
    Last Post: 11-05-2002, 10:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21