Request fo change

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

Request fo change

Postby rcaspers » Thu Oct 29, 2009 2:39 pm

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]

Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 77 guests