Click here to Skip to main content
15,898,371 members

Comments by Brandon Williams (Top 4 by date)

Brandon Williams 11-Aug-17 17:19pm View    
ok thanks, but do you know how to remove it programmatically.
Brandon Williams 11-Aug-17 15:53pm View    
ok im sorry i didnt know how but do you by any chance have an answer?
Brandon Williams 11-Aug-17 12:23pm View    
Deleted
how do i do it with this


Try
Detect.Labellastreal.Text = e.FullPath
ListBox3.Items.Add(Detect.Labellastreal.Text)
Me.OpenFileDialog3.FileName = ""
Dim scanbox As New TextBox
scanbox.Text = My.Computer.FileSystem.ReadAllText("VirusList.dat").ToString
Dim md5 As New MD5CryptoServiceProvider
Dim f As New FileStream(e.FullPath, FileMode.Open, FileAccess.Read, FileShare.Read, &H2000)
f = New FileStream(e.FullPath, FileMode.Open, FileAccess.Read, FileShare.Read, &H2000)
md5.ComputeHash(f)
Dim hash As Byte() = md5.Hash
Dim buff As New StringBuilder
Dim hashByte As Byte
For Each hashByte In hash
buff.Append(String.Format("{0:X2}", hashByte))
Next
f.Close()
If scanbox.Text.Contains(buff.ToString) Then
Me.OpenFileDialog3.FileName = e.FullPath
Detect.ShowDialog()

WriteToLog("Virus detected")

End If

Catch exception1 As Exception
ProjectData.SetProjectError(exception1)
Dim ex As Exception = exception1
ProjectData.ClearProjectError()
End Try
Brandon Williams 11-Aug-17 9:53am View    
how can i get my program to release it? i used a open file dialog if thats any help. Thanks in advance.