 | 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 = ""
)
Public Shared Function ZipDir (
dirname As String,
zipFileName As String,
Optional containdir As Boolean = false,
Optional password As String = ""
) As Boolean
static member ZipDir :
dirname : string *
zipFileName : string *
?containdir : bool *
?password : string
(* Defaults:
let _containdir = defaultArg containdir false
let _password = defaultArg password ""
*)
-> bool
参数
- dirname
- 类型:SystemString
被压缩文件的文件夹名 - zipFileName
- 类型:SystemString
压缩后文件名 - containdir (Optional)
- 类型:SystemBoolean
包含文件夹 - password (Optional)
- 类型:SystemString
密码
返回值
类型:
Boolean返回值为true:成功 false:失败
参见