Is there any sample about getting the results from executing an exe using
C#?
Thanks for answering. 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
<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 thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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 |...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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$) {
}
...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |