For Each File As String In GetFiles(ProjectPath) zip.AddFile(File,FileSys.GetName(File))
Next
For Each dir As String In GetDirectories(ProjectPath)
dim idx as integer=dir.LastIndexOf("\")
if dir.SubString(idx+1,dir.length-idx-1) <> "Images" then
For Each File As String In GetFiles(dir)
zip.AddFile(File,dir & "\" & FileSys.GetName(File))
Next
Next如果有多层目录 那么最好改为递归获取文件.