Noob Looking For Help :)

Status
Not open for further replies.

dynamode

Veteran
Original poster
veteran
member
Joined
Apr 24, 2011
Posts
1,017
Reaction score
173
Points
166
Location
Earth
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?

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
 

dynamode

Veteran
Original poster
veteran
member
Joined
Apr 24, 2011
Posts
1,017
Reaction score
173
Points
166
Location
Earth
Bump! Help Please
 

dynamode

Veteran
Original poster
veteran
member
Joined
Apr 24, 2011
Posts
1,017
Reaction score
173
Points
166
Location
Earth
BUMP! Coders Need HelP!

bump coders need help!
 

xkulikidzx

Member
member
Joined
Jan 17, 2011
Posts
14
Reaction score
1
Points
0
Well this is a guess but if you can edit the file try this
Dim myRegex As New System.Text.RegularExpressions.Regex("UNVERIFIED", System.Text.RegularExpressions.RegexOptions.IgnoreCase Or System.Text.RegularExpressions.RegexOptions.Compiled)
Since it was verified maybe changing it to unverified will do something.
 
Status
Not open for further replies.