大家有没有用过上传并且能自动解压缩的控件,用过的推荐一下,最近急需 大家有没有用过上传并且能自动解压缩的控件,用过的推荐一下,最近急需先谢了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string Strdir = DirectoryName;//要压缩的文件夹string StrdirGoal = Strdir + "\\" + "exam";//压缩包存放位置string StrCmd = "a " + " -ep1 -sfx " + StrdirGoal + " " + Strdir;string StrRARCmd = Server.MapPath( "" ) + "\\Rar\\Rar.exe ";Process.Start( StrRARCmd, StrCmd );你把压缩文件考到wwwroot....只需要四个文件就可以了而且可以压缩文件夹,自动解压。等等。 你可以利用服务器端调用winrar来解压string readRoot = @"C:\";string filePath = @"C:\files.rar";string unZipFolder = @"C:\files\";//调用程序WinRAR进行解压System.Diagnostics.Process process = new System.Diagnostics.Process();//设置执行文件物理存放目录process.StartInfo.FileName = readRoot + "WinRAR.exe";process.StartInfo.Arguments = " x -inul -y " + filePath + " " + unZipFolder;//进行解压process.Start(); //等待解压的完成while(!process.HasExited) {} http://blog.csdn.net/johnsuna/archive/2006/05/11/724833.aspx vbscript转成C# asp.net菜鸟求教如何在visual studio环境中实现网页设计 主机用IIS建立的http地址,同一个局域网的怎么访问? asp.net 查询 急,哪位帮帮我 ajax实现dropdownlist无刷新 怎样调用app_code里的cs类!!!!!!!!! 创建控件时出错 - CrystalReportViewer1(水晶报表) js 数组过滤 like 全字匹配 求助:asp.net+sql server 2k做的网站多人同时访问的话很慢 为什么table中的datagrid会多出几列? 如何在gridview中更新或者删除单行的数据????
string StrdirGoal = Strdir + "\\" + "exam";//压缩包存放位置
string StrCmd = "a " + " -ep1 -sfx " + StrdirGoal + " " + Strdir;
string StrRARCmd = Server.MapPath( "" ) + "\\Rar\\Rar.exe ";
Process.Start( StrRARCmd, StrCmd );
你把压缩文件考到wwwroot....
只需要四个文件就可以了
而且可以压缩文件夹,自动解压。等等。
string filePath = @"C:\files.rar";
string unZipFolder = @"C:\files\";
//调用程序WinRAR进行解压
System.Diagnostics.Process process = new System.Diagnostics.Process();
//设置执行文件物理存放目录
process.StartInfo.FileName = readRoot + "WinRAR.exe";
process.StartInfo.Arguments = " x -inul -y " + filePath + " " + unZipFolder;
//进行解压
process.Start();
//等待解压的完成
while(!process.HasExited)
{
}