Using and intercepting command line programs
-
Hi, I am trying to use ILAsm and ILDasm inside an application and I need to be able to run the programs and intercept any errors and/or output that they create. Are there FxCL classes to do this or is there another way? (I'm using C#). I searched around on the articles on the site but couldn't find anything relating to this. Maybe I just don't have the right keywords. Any links or advice would be great. Thanks. -Noah Fields
-
Hi, I am trying to use ILAsm and ILDasm inside an application and I need to be able to run the programs and intercept any errors and/or output that they create. Are there FxCL classes to do this or is there another way? (I'm using C#). I searched around on the articles on the site but couldn't find anything relating to this. Maybe I just don't have the right keywords. Any links or advice would be great. Thanks. -Noah Fields
Take a look at the System.Diagnostics namespace, especially the Process and ProcessStartInfo classes. Searching for those two classes on the net should lead you to lots of examples on how to start applications and redirect their output to yourself.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins -
Take a look at the System.Diagnostics namespace, especially the Process and ProcessStartInfo classes. Searching for those two classes on the net should lead you to lots of examples on how to start applications and redirect their output to yourself.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. HubbinsGreat! thanks for your help