.net 调用 flashpaper 转换SWF 保存问题
public bool ConvertFile(string inFile, string outFile, string flashPrinter){
//进程操作
Process pss = new Process();
pss.StartInfo.CreateNoWindow = true;
pss.StartInfo.FileName = flashPrinter;
pss.StartInfo.Arguments = string.Format("{0} {1} -o {2}", flashPrinter, inFile, outFile);
try
{
pss.Start();
while (!pss.HasExited)
{
continue;
}
return true;
}
catch (Exception)
{
return false;
}
}
string fileName = this.FileUpload1.FileName;
string localPath = Server.MapPath(Request.ApplicationPath + @"/Files_Upload");
string fullPath = localPath + "\\" + fileName;
this.FileUpload1.SaveAs(fullPath);
string strCom_File_Name = System.Guid.NewGuid().ToString() + ".swf";
string swfPath = Server.MapPath(@"~/Files_SWF/") + strCom_File_Name;
string FlashPrinter = Server.MapPath(@"~/FlashPaper/FlashPrinter.exe");
ConvertFile(fullPath, swfPath, FlashPrinter);
可以肯定执行了转换程序,但是没有保存到指定文件夹,是在调试环境下,还没有部署
请各位大神指导,谢谢~~~ .NET SWF --------------------编程问答-------------------- 自己顶,求大神来解救。。。 --------------------编程问答-------------------- 不要沉了呀,求大神指导。。。。
补充:.NET技术 , ASP.NET