Request fo change

Got a problem you cannot solve? Try here.
Post Reply
rcaspers
Posts: 29
Joined: Tue Jul 22, 2008 1:13 pm

Request fo change

Post by rcaspers »

Hello, i am using Miabuild.exe for a while and it works fine.
I can see that windows cabinetmaker makecab.exe is used.
this opens an extra console window
is it posible to redirect the output of makecap.exe to the outputwindow of miabuild.exe? It would make me (and a lot of other users?) very happy.
thanks in advance.

Code: Select all

public void start makecab()
{
  Process p = new Process();
  p.StartInfo.FileName = @"makecab.exe";
  p.StartInfo.RedirectStandardOutput = true;
  p.StartInfo.UseShellExecute = false;
  p.OutputDataReceived += new DataReceivedEventHandler(pOutput);
  p.StartInfo.CreateNoWindow = true;
  p.Start();
  p.BeginOutputReadLine();
  p.WaitForExit();
}

  private static void pOutput(object sendingProcess, DataReceivedEventArgs outLine)
  {
    Console.WriteLine(outLine.Data);
  }
[/code]
Post Reply