Is there any sample about getting the results from executing an exe using
C#?
Thanks for answering. 9 1359
On Sun, 27 Aug 2006 17:54:14 +0800, <Elliotwrote:
>Is there any sample about getting the results from executing an exe using C#? Thanks for answering.
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static int Main(string[] args)
{
int i = 1 + 2;
return i;
}
}
}
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in
message news:de********************************@4ax.com... </DIV>On Sun, 27
Aug 2006 17:54:14 +0800, <Elliotwrote:
>
>>Is there any sample about getting the results from executing an exe using C#? Thanks for answering.
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static int Main(string[] args)
{
int i = 1 + 2;
return i;
}
}
}
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
Oh, I mean there is a file, for instance, test.exe, it will dynamically
output a text. I'd like to use C# to get the text, is it possible?
On Mon, 28 Aug 2006 03:17:08 +0800, <Elliotwrote:
>
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in message news:de********************************@4ax.com... </DIV>On Sun, 27 Aug 2006 17:54:14 +0800, <Elliotwrote:
>>
>>>Is there any sample about getting the results from executing an exe using C#? Thanks for answering.
using System; using System.Collections.Generic; using System.Text;
namespace ConsoleApplication1 { class Program { static int Main(string[] args) { int i = 1 + 2;
return i; } } } Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com Oh, I mean there is a file, for instance, test.exe, it will dynamically output a text. I'd like to use C# to get the text, is it possible?
What format is the text? Is it a file? Is it a string?
Can you tell me a little more about what you are trying to do?
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in
message news:44********************************@4ax.com... </DIV>On Mon, 28
Aug 2006 03:17:08 +0800, <Elliotwrote:
>
>>
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in message news:de********************************@4ax.com... </DIV>On Sun, 27 Aug 2006 17:54:14 +0800, <Elliotwrote:
>>> Is there any sample about getting the results from executing an exe using C#? Thanks for answering.
using System; using System.Collections.Generic; using System.Text;
namespace ConsoleApplication1 { class Program { static int Main(string[] args) { int i = 1 + 2;
return i; } } } Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com Oh, I mean there is a file, for instance, test.exe, it will dynamically output a text. I'd like to use C# to get the text, is it possible?
What format is the text? Is it a file? Is it a string?
Can you tell me a little more about what you are trying to do?
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
A text string. I just want to get the output data from a console applicaton
which i wrote before using C++.
On Mon, 28 Aug 2006 05:16:19 +0800, <Elliotwrote:
<snip>
>>>Oh, I mean there is a file, for instance, test.exe, it will dynamically output a text. I'd like to use C# to get the text, is it possible?
What format is the text? Is it a file? Is it a string?
Can you tell me a little more about what you are trying to do?
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com A text string. I just want to get the output data from a console applicaton which i wrote before using C++.
You will probably have to run the Console application from the
System.Diagnostics.Process method and retrieve the output there.
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in
message news:98********************************@4ax.com... </DIV>On Mon, 28
Aug 2006 05:16:19 +0800, <Elliotwrote:
<snip>
>>>>Oh, I mean there is a file, for instance, test.exe, it will dynamically output a text. I'd like to use C# to get the text, is it possible?
What format is the text? Is it a file? Is it a string?
Can you tell me a little more about what you are trying to do?
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com A text string. I just want to get the output data from a console applicaton which i wrote before using C++.
You will probably have to run the Console application from the
System.Diagnostics.Process method and retrieve the output there.
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
Can I have any example please?
On Mon, 28 Aug 2006 06:47:24 +0800, <Elliotwrote:
>
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in message news:98********************************@4ax.com... </DIV>On Mon, 28 Aug 2006 05:16:19 +0800, <Elliotwrote:
><snip>
>>>>>Oh, I mean there is a file, for instance, test.exe, it will dynamically >output a text. I'd like to use C# to get the text, is it possible?
What format is the text? Is it a file? Is it a string?
Can you tell me a little more about what you are trying to do?
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
A text string. I just want to get the output data from a console applicaton which i wrote before using C++.
You will probably have to run the Console application from the System.Diagnostics.Process method and retrieve the output there. Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com Can I have any example please?
yes, there is an excellent example in the help files. Type
System.Diagnostics.Process int the index.
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in
message news:9u********************************@4ax.com... </DIV>On Mon, 28
Aug 2006 06:47:24 +0800, <Elliotwrote:
>
>>
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in message news:98********************************@4ax.com... </DIV>On Mon, 28 Aug 2006 05:16:19 +0800, <Elliotwrote:
>><snip> >>Oh, I mean there is a file, for instance, test.exe, it will >>dynamically >>output a text. I'd like to use C# to get the text, is it possible? > What format is the text? Is it a file? Is it a string? > Can you tell me a little more about what you are trying to do? > Good luck with your project, > Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
A text string. I just want to get the output data from a console applicaton which i wrote before using C++.
You will probably have to run the Console application from the System.Diagnostics.Process method and retrieve the output there. Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com Can I have any example please?
yes, there is an excellent example in the help files. Type
System.Diagnostics.Process int the index.
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
Thanks but where? Visual Studio?
On Tue, 29 Aug 2006 01:33:18 +0800, <Elliotwrote:
Open Visual Studio.
On the menu bar at the top, click Help/Help On Help
>
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in message news:9u********************************@4ax.com... </DIV>On Mon, 28 Aug 2006 06:47:24 +0800, <Elliotwrote:
>>
>>>
<DIV>"Otis Mukinfus" <ph***@emailaddress.com> wrote in message news:98********************************@4ax.com... </DIV>On Mon, 28 Aug 2006 05:16:19 +0800, <Elliotwrote: <snip> >>>Oh, I mean there is a file, for instance, test.exe, it will >>>dynamically >>>output a text. I'd like to use C# to get the text, is it possible? >> >What format is the text? Is it a file? Is it a string? >> >Can you tell me a little more about what you are trying to do? >> >Good luck with your project, >> >Otis Mukinfus >http://www.arltex.com >http://www.tomchilders.com > >A text string. I just want to get the output data from a console >applicaton >which i wrote before using C++.
You will probably have to run the Console application from the System.Diagnostics.Process method and retrieve the output there. Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com
Can I have any example please?
yes, there is an excellent example in the help files. Type System.Diagnostics.Process int the index.
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com Thanks but where? Visual Studio?
Good luck with your project,
Otis Mukinfus http://www.arltex.com http://www.tomchilders.com This discussion thread is closed Replies have been disabled for this discussion. Similar topics
1 post
views
Thread by Rhiner Dan |
last post: by
|
4 posts
views
Thread by Bob Bedford |
last post: by
|
4 posts
views
Thread by s99999999s2003 |
last post: by
|
3 posts
views
Thread by rss |
last post: by
|
5 posts
views
Thread by James Scott |
last post: by
|
4 posts
views
Thread by Allan M. Bruce |
last post: by
|
5 posts
views
Thread by reycri |
last post: by
|
22 posts
views
Thread by Sri |
last post: by
| | | | | | | | | | | |