日期:2014-05-17 浏览次数:20424 次
public void ConvertToSWF(string oldFile, string swfFile)
{
System.Diagnostics.Process pc = new System.Diagnostics.Process();
// pc.StartInfo.FileName = "cmd";
pc.StartInfo.FileName = @"F:\Two\Demo\Demo\FlashPaper\FlashPrinter.exe";
pc.StartInfo.Arguments = string.Format("{0} -o {1}", oldFile, swfFile);
pc.StartInfo.CreateNoWindow = true;
pc.StartInfo.UseShellExecute = false;
pc.StartInfo.RedirectStandardInput = true;
pc.StartInfo.RedirectStandardOutput = true;
pc.StartInfo.RedirectStandardError = true;
pc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
pc.Start();
pc.WaitForExit();
pc.Close();
// pc.Dispose();
}