Solved

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

Posted on 2008-06-23
4
827 Views
Last Modified: 2013-12-16
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
Comment
Question by:margajet24
  • 2
4 Comments
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 100 total points
ID: 21849179
I don't believe that you can get UseShellExecute and RedirectStandardError to work together.
0
 
LVL 10

Accepted Solution

by:
margajet24 earned 0 total points
ID: 22068002
my groupmate was able to fix this..i dont know yet how he did it

but thanks for the info..
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 22102453
It would be interesting to know how this was eventually solved, because I didn't think that it was possible.
0
 
LVL 2

Expert Comment

by:katlin924
ID: 22258886
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now