If FileSys.FileExists("F:\\备份.zip") Then \'如果指定的文件存在
FileSys.DeleteFile("F\\备份.zip",2,2) \'则彻底删除之
Dim zip As New zipFile
zip.Create("F:\\备份.zip")
zip.AddFolder( ProjectPath)
zip.Close()
MessageBox.Show("备份完毕!","提示!")
Else
Dim zip As New zipFile
zip.Create("F:\\备份.zip")
zip.AddFolder( ProjectPath)
zip.Close()
MessageBox.Show("备份完毕!","提示!")
End If