using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO.Compression; //for zipfile
//ref 和 out 的区别
/*
* out、ref都是引用传递,传递后使用都会改变原有的值
* out是只出不进。ref是有进有出,
*
* out用法,一般用于需要返回多个参数时,如在需要返回分页的数据时 同时返回总条数或者TryParse()会用到
* ref用法,一般用于在改变一个参数时,把他的改变反应到变量中 如在递归中
*
*/
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string inputZipFileName = @"D:\project\test.zip";
string outputDirectoryName = @"D:\project\tmp";
//拷贝的目的数组
string[] dstPathArray = {
"dst/001","dst/002","dst/003","dst/004","dst/005","dst/006","dst/007","dst/008","dst/009","dst/010",
"dst/011","dst/012","dst/013","dst/014","dst/015","dst/016","dst/017","dst/018","dst/019","dst/020",
拷贝压缩包里的文件到指定的目录们
最新推荐文章于 2023-04-03 11:51:35 发布
本文介绍如何高效地将压缩包中的文件逐一解压并复制到多个预设的目标目录,涉及文件操作和路径管理技巧。
摘要由CSDN通过智能技术生成