For my programe i need decompile a swf ... I use flasm for this !
for my first try i export result in txt file and read this txt
string newPath = Path.GetTempPath() + @"DasLol.txt";
if(File.Exists(newPath))
{
File.Delete(newPath);
}
string dasCmd = "/c flasm.exe -d \"" + path + "\" > " + newPath;
ProcessStartInfo procStartInfo = new ProcessStartInfo(@"C:\Windows\System32\cmd.exe", dasCmd);
Process flasm = new Process {StartInfo = procStartInfo};
flasm.Start();
flasm.WaitForExit();
string dasString = File.ReadAllText(newPath);
but how to redirect de StandardOutput for read directly my "dasString" in console ? ( and don't use a temporary txt )