Process p = new Process();
p.StartInfo.FileName = "a.exe";
//...........
when it executes, it may be create segment error, and the
error will be displyed on the screen.
how can I make it just exit , rather than disply
and, how can i get the exitCode...
by the way, i write the code in Asp.net.....
thank you 5 3904
Hello Stanley,
You could just wrap the Process.Start() in a try...catch block and ingore
the error. As for the exit code, there is an ExitCode property associated
with the Process class. So, you could call p.ExitCode and get the exit
code.
HTH,
Bill P.
On Fri, 1 Aug 2003 07:01:26 -0700, Stanley <us***@yeah.net> wrote: Process p = new Process(); p.StartInfo.FileName = "a.exe"; //...........
when it executes, it may be create segment error, and the error will be displyed on the screen.
how can I make it just exit , rather than disply
and, how can i get the exitCode...
by the way, i write the code in Asp.net.....
thank you
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Hello Stanley,
You could just wrap the Process.Start() in a try...catch block and ingore
the error. As for the exit code, there is an ExitCode property associated
with the Process class. So, you could call p.ExitCode and get the exit
code.
HTH,
Bill P.
On Fri, 1 Aug 2003 07:01:26 -0700, Stanley <us***@yeah.net> wrote: Process p = new Process(); p.StartInfo.FileName = "a.exe"; //...........
when it executes, it may be create segment error, and the error will be displyed on the screen.
how can I make it just exit , rather than disply
and, how can i get the exitCode...
by the way, i write the code in Asp.net.....
thank you
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Dear Bill:
the error message is disply by Windows2000, can I config
the system, so it does not disply the error.... -----Original Message----- Hmmm.. is it "a.exe" that is displaying the error
message? If that is thecase, then, unless the developers put in a switch or
command line arguementto supress the error window, you are going to have to
deal with it (Youmight be able to trap the window handle that gets created
when the messageis displayed and use a WM_* message to click the OK
button, or somethinglike that).
Dear Bill:
the error message is disply by Windows2000, can I config
the system, so it does not disply the error.... -----Original Message----- Hmmm.. is it "a.exe" that is displaying the error
message? If that is thecase, then, unless the developers put in a switch or
command line arguementto supress the error window, you are going to have to
deal with it (Youmight be able to trap the window handle that gets created
when the messageis displayed and use a WM_* message to click the OK
button, or somethinglike that).
I don't know. Could be a setting, but *I* personally don't know of one that
allows suppression of OS messages. You might want to talk to the developer
and see if there is a switch that allows you to disable error messages.
HTH<
Bill P
On Fri, 1 Aug 2003 18:06:13 -0700, Stanley <us***@yeah.net> wrote: Dear Bill: the error message is disply by Windows2000, can I config the system, so it does not disply the error....
-----Original Message----- Hmmm.. is it "a.exe" that is displaying the error message? If that is the case, then, unless the developers put in a switch or command line arguement to supress the error window, you are going to have to deal with it (You might be able to trap the window handle that gets created when the message is displayed and use a WM_* message to click the OK button, or something like that).
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Reed |
last post by:
Can someone stear me in the right direction to convert a binary tree
from a Linked List to a Dynamic Array... Dynamic arrays aren't
something im strong with.
//********bintree.h********
#ifndef...
|
by: typingcat |
last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so
on. I've tried many PHP IDEs today, but almost non of them supported
Unicode (UTF-8) file.
I've found that the only Unicode...
|
by: Grasshopper |
last post by:
Hi,
I am automating Access reports to PDF using PDF Writer 6.0. I've
created a DTS package to run the reports and schedule a job to run this
DTS package. If I PC Anywhere into the server on...
|
by: Vincent Nguyen |
last post by:
Hi,
Does anyone know how call Win32 native API GetTokenInformation() by using
C#? Any sample code would be helpful. Thanks!
Vincent
|
by: Tony Wong |
last post by:
I am trying to implement the Singleton Pattern for a assembly (class) which
control a common resource on my computer. I need the Singleton behavior
within a single process which contain multiple...
|
by: Raymond Lewallen |
last post by:
How to wait for a process to stop completion is my goal. Obviously, the
looping while waiting for the HasExited property is not a solution.. but
thats the best I can come up off the top of my...
|
by: Joe |
last post by:
Hello All:
Do I have to use the LoadControl method of the Page to load a UserControl?
I have a class which contains three methods (one public and two private).
The class acts as a control...
|
by: Vicky_r |
last post by:
hi..
I am using Process class to run a .bat file. The .bat file contains
the code to run the Session StateServer.
First I have written a command in a text file then I convert it to bat
and...
|
by: Wang E |
last post by:
I've been working on an online judge(for ACM/ICPC) using C#.Programmes
submitted by users can now be compiled,and it's the problem to judge.I
use the Process class in C#,and my thread is as...
|
by: lewisms |
last post by:
Hello all,
I am quite new to c++/. Net so please don't shoot me down for being a newbie. Any way I am trying to make a simple multithreading program that is just to learn the ideas behind it...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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: 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: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |