点击或拖拽改变大小

SevenZipExZipDir 方法

Sweet 开发框架
压缩文件夹

命名空间:  Sweet.Common
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static bool ZipDir(
	string dirname,
	string zipFileName,
	bool containdir = false,
	string password = ""
)

参数

dirname
类型:SystemString
被压缩文件的文件夹名
zipFileName
类型:SystemString
压缩后文件名
containdir (Optional)
类型:SystemBoolean
包含文件夹
password (Optional)
类型:SystemString
密码

返回值

类型:Boolean
返回值为true:成功 false:失败
参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架