Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 840
  • Last Modified:

How to redirect standard error at the same time set UseShellExecute to true?

I have a problem.

Does anyone know mk32 execution?

I am developing a GUI for mk32 cmd execution.
I need to get the standard error of mk32.exe, so I used the following codes:

ProcessObj.StartInfo.UseShellExecute = false;
ProcessObj.StartInfo.RedirectStandardError = true;

It was a success. However, when mk32.exe is compiling correctly, it gets "a dump file error. Win32 error 6". I think it is because of the UseShellExecute property.

How can I get the standard error at the same time set the  UseShellExecute to true?
Thanks for your help.
0
margajet24
Asked:
margajet24
  • 2
2 Solutions
 
Bob LearnedCommented:
I don't believe that you can get UseShellExecute and RedirectStandardError to work together.
0
 
margajet24IT Business AnalystAuthor Commented:
my groupmate was able to fix this..i dont know yet how he did it

but thanks for the info..
0
 
Bob LearnedCommented:
It would be interesting to know how this was eventually solved, because I didn't think that it was possible.
0
 
katlin924Commented:
TheLearnedOne,

you're correct. It is not possible to do it. So I just made some adjustments to the code.
I just redirected the standard error manually then read an external file for that.

Thanks for the info.

Btw, I am margajet24's groupmate. =)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now