O
Omko H
I am trying to open %windir%\pfirewall.log.
and I just can't get it to work (I am a absolute newbie to VB.net)
the strange thing is that notepad is perfectly able to view the file. but my
code keeps failing.
amongst other things i tried:
Dim s2 As New System.IO.FileStream(FileName, System.IO.FileMode.Open,
System.IO.FileAccess.Read, System.IO.FileShare.Read)
I keep getting this error when i try to open it:
An unhandled exception of type 'System.IO.IOException' occurred in
mscorlib.dll
Additional information: The process cannot access the file
"C:\WINDOWS\pfirewall.log" because it is being used by another process.
does anyone know how i can open this file allthough it is locked by the
firewall?
Omko Huizenga
and I just can't get it to work (I am a absolute newbie to VB.net)
the strange thing is that notepad is perfectly able to view the file. but my
code keeps failing.
amongst other things i tried:
Dim s2 As New System.IO.FileStream(FileName, System.IO.FileMode.Open,
System.IO.FileAccess.Read, System.IO.FileShare.Read)
I keep getting this error when i try to open it:
An unhandled exception of type 'System.IO.IOException' occurred in
mscorlib.dll
Additional information: The process cannot access the file
"C:\WINDOWS\pfirewall.log" because it is being used by another process.
does anyone know how i can open this file allthough it is locked by the
firewall?
Omko Huizenga