//Decompress protected void UnZipBtn_Click(object sender, EventArgs e) { if (File.Exists(StationGroup.RootPath + StationGroup.ZipSavePath + StationGroup.ZipName)) { long[] ll = FileSystemObject.GetDirInfos((StationGroup.RootPath + StationGroup.ZipSavePath));//获取文件大小,用于判断进度 ZipClass.unZipTotal = ll[0]; ThreadPool.QueueUserWorkItem(MyUnZipWork, sg); DataBind(); Page.ClientScript.RegisterStartupScript(this.GetType(), "", "$('.progress-label').text('开始解压缩');$('#progressDiv').show();beginCheck('getUnZipProg');", true); } else { Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('源码文件" + (StationGroup.ZipSavePath + StationGroup.ZipName).Replace(@"\", @"\\") + "不存在,请先下载再安装');location=location;", true); } }