473,382 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

getting the result from executing an exe

Is there any sample about getting the results from executing an exe using
C#?
Thanks for answering.

Aug 27 '06 #1
9 1413
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
Aug 27 '06 #2


<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; 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?

Aug 27 '06 #3
On Mon, 28 Aug 2006 03:17:08 +0800, <Elliotwrote:
>

<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; 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
Aug 27 '06 #4


<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; wrote in
message news:44********************************@4ax.com... </DIV>On Mon, 28
Aug 2006 03:17:08 +0800, <Elliotwrote:
>
>>

<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; 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++.

Aug 27 '06 #5
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
Aug 27 '06 #6


<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; 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?

Aug 27 '06 #7
On Mon, 28 Aug 2006 06:47:24 +0800, <Elliotwrote:
>

<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; 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
Aug 27 '06 #8


<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; wrote in
message news:9u********************************@4ax.com... </DIV>On Mon, 28
Aug 2006 06:47:24 +0800, <Elliotwrote:
>
>>

<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; 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?

Aug 28 '06 #9
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>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; wrote in
message news:9u********************************@4ax.com... </DIV>On Mon, 28
Aug 2006 06:47:24 +0800, <Elliotwrote:
>>
>>>

<DIV>&quot;Otis Mukinfus&quot; &lt;ph***@emailaddress.com&gt; 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
Aug 28 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rhiner Dan | last post by:
Here are the errors from my Dev-c compiler //////////////////////////////////////////////////////////////////////////// Building Makefile: "C:\Dev-Cpp\Makefile.win" Executing make... make.exe...
4
by: Bob Bedford | last post by:
We have no access to a mysql NG on my provider's server, so we ask here: We have a long query (long in text) with a UNION between 2 select. We have been informed that some times the query...
4
by: s99999999s2003 | last post by:
hi the database "execute" function returns a list of logical results. Each logical result is a list of row tuples, as explained in the documents. everytime i use it to execute various...
3
by: rss | last post by:
SUMMARY: ========== I am unable to pass along a simple Cookie obtained from a HttpWebRequest call (Machine A's ASP.NET app) so that another Web Server (Machine B) recongnizes the cookie. I...
5
by: James Scott | last post by:
Hello, I have following table: product| ordered_by | date n1 | A | 2006-01-01 n1 | A | 2006-02-01 n1 | D | 2006-03-01 n1 | B | 2006-05-01 n2 | B |...
4
by: Allan M. Bruce | last post by:
I have a small implementation of a queue which I am trying to get to compile but cant figure out why it doesnt work. I have copied the minimum compilable code below. On gcc I get temp2.c: In...
5
by: reycri | last post by:
Hi, I need to be able to do this: var func = new Function("var me = <selfRef>; alert(me.params);"); func.params = "This is a test parameter"; window.setTimeout(func, 500); Basically, I...
22
by: Sri | last post by:
All Recenetly our shop migrated to DB2 V8 from V7. We are in IBM System Level: z/OS 1.6.1 @ RSU 0702. Processor : IBM 2064-1C7 (z/900) # 1B89 Mode: 64-bit One of my application is facing...
1
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.