# 默认情况下没有zip和unzip工具,需要进行安装[root@lqz ~]# yum install zip unzip -y#1.压缩文件为zip包# zip 压缩表名 压缩的文件[root@lqz ~]# zip filename.zip filename# 打包不通目录下的不通文件[root@lqz ~]# zip filename1.zip file1 file2 /etc/h
//读取压缩文件(zip文件),准备解压缩 ZipInputStream s = new ZipInputStream(File.OpenRead(TargetFileZip.Trim())); ZipEntry theEntry; string path = fileDir; //解压出来的文件保存的路径 string rootDir = " "; //根目录下的第一个子文件夹的名称 while ((theEntry = s.GetNextEntry()) != null...
{publicForm1() { InitializeComponent(); }privatevoidbutton1_Click(objectsender, EventArgs e) {stringURL ="https://media.w3.org/2010/05/sintel/trailer.mp4";//视频网络地址stringfilename =@"D:\视频下载\\video.mp4";//存储视频的文件地址 DownloadFile(URL, filename, progressBar1);//调用下载方...