RE: Strange behavour of Process
- From: v-phuang@xxxxxxxxxxxxxxxxxxxx ("Peter Huang" [MSFT])
- Date: Tue, 21 Jun 2005 07:12:07 GMT
Hi
Did the all the EXE are of Console Application?
Have you tried to write a test console application for a test to see if
that reproduce the problem?
Also from the document, it seems that we need to set the UseShellExecute to
false to redirect the output stream.
Setting this property to false enables you to redirect input, output, and
error streams.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdiagnosticsprocessstartinfoclassuseshellexecutetopic.asp
Commonly, if your code works for all the other EXE, (I assume they are all
Console Application), I guess maybe the problem EXE file has do something
expecially.
I think you may also try to contact the EXE's develop for the source code,
so that we can check what is the problem.
Also I think you may try to call the CreateProcess directly to see if that
works for you.
Here are some articles for your reference.
How to spawn a process that runs under the context of the impersonated user
in Microsoft ASP.NET pages
http://support.microsoft.com/kb/889251
Desktop Switching
http://www.thecodeproject.com/csharp/CsDesktopSwitching.asp
If I have any misunderstanding, please feel free to post here.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- RE: Strange behavour of Process
- From: LarsJ
- RE: Strange behavour of Process
- References:
- Strange behavour of Process
- From: LarsJ
- RE: Strange behavour of Process
- From: LarsJ
- Strange behavour of Process
- Prev by Date: RE: Same TimeZone on Client as Server on specific data table colum
- Next by Date: Re: Can not isntall SP1 of .Netframework
- Previous by thread: RE: Strange behavour of Process
- Next by thread: RE: Strange behavour of Process
- Index(es):
Relevant Pages
|