ERROR "process cannot access the file because it is being used by another process"
How To Bypass Or Fix That Error.
Its A Logfile From OpenVPN
So The Process OpenVPN.exe is using it.
anyone can help?
How To Bypass Or Fix That Error.
Its A Logfile From OpenVPN
So The Process OpenVPN.exe is using it.
anyone can help?
Code:
Dim inputFile As String = System.IO.File.ReadAllText(Application.StartupPath & "\log.txt")
Dim m As System.Text.RegularExpressions.Match
Dim myRegex As New System.Text.RegularExpressions.Regex("VERIFIED", System.Text.RegularExpressions.RegexOptions.IgnoreCase Or System.Text.RegularExpressions.RegexOptions.Compiled)
m = myRegex.Match(inputFile)
If m.Success Then
Label4.Text = "YES"
Else
Label4.Text = "NO"
End If