17-08-13, 05:36 AM
تفضل كتبت لك طلبك على شكل دالتين
لاتنسى اضافة مجال الاسماء Imports Ionic.Zip
والمكتبة الي اعطاها اياك الاخ عبودي <
الشكر له ولاتشكرني انا
PHP كود :
Function IsFileCorrupted(ByVal zipPath As String) As Boolean
Try
Using zip As ZipFile = ZipFile.Read(zipPath)
Return False
End Using
Catch ex As Exception
Return True
End Try
End Function
Function IsPasswordValid(ByVal Password As String, ByVal zipPath As String) As Boolean
Return IIf(ZipFile.CheckZipPassword(zipPath, Password), True, False)
End Function
لاتنسى اضافة مجال الاسماء Imports Ionic.Zip
والمكتبة الي اعطاها اياك الاخ عبودي <
الشكر له ولاتشكرني انا