<?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:XmUJ-i-Jk1RQ77--5e---:-myXSD-2008-05-09T02-41-53" href="manifest.xsf" solutionVersion="1.0.0.6" productVersion="12.0.0" PIVersion="1.0.0.0" ?>
<?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.2"?>
|
public bool f_ExternXsn(string InputFile, string OutputDirecty)
{
try
{
string serverMap = Server.MapPath("");
FileInfo fi = new FileInfo(InputFile);
DirectoryInfo di = new DirectoryInfo(OutputDirecty);
System.Diagnostics.Process process1 = new System.Diagnostics.Process();
process1.StartInfo.Arguments = @"/y /e " + fi.FullName + @" /l " + di.FullName;
process1.StartInfo.FileName = serverMap + @"\extract.exe ";
process1.Start();
//
等待解壓
while (!process1.HasExited)
{ }
process1.Close();
return true;
}
catch (System.Exception err)
{
Response.Write("<script>alert(\"
解壓失敗!錯誤緣由:
" + err.Message + "
!
\")</script>");
return false;
}
}
|