utton1 yani tarama kodu
PHP Code:
If (Me.TextBox1.Text = "") Then
Interaction.MsgBox("Taranacak dosya eklenmedi -.-", MsgBoxStyle.Exclamation, "...")
ElseIf File.Exists(Me.TextBox1.Text) Then
Dim provider As New MD5CryptoServiceProvider
Dim inputStream As New FileStream(Me.TextBox1.Text, FileMode.Open, FileAccess.Read, FileShare.Read, &H2000)
provider.ComputeHash(inputStream)
Dim hash As Byte() = provider.Hash
Dim builder As New StringBuilder
Dim num As Byte
For Each num In hash
builder.Append(String.Format("{0:X2}", num))
Next
Me.txthash.Text = builder.ToString
End If
If Me.txthashes.Text.Contains(Me.txthash.Text) Then
Me.lblstatus.Text = "tehlikeli dosya!"
MsgBox("tehlikeli dosya", , "tehlikeli dosya")
Else
Me.lblstatus.Text = "dosyada virus bulunmadı"
MsgBox("güvenli dosya", , "güvenli dosya")
End If