草庐IT

seclogPath1

全部标签

c# - 读取另一个进程正在使用的日志文件

目标我想在我的GUI上按下一个按钮,从远程机器读取seclog.log文件(symantecAV日志),并将日志的内容显示到我的应用程序中的富文本框。有用的东西除了读取日志文件之外的一切错误信息System.IO.IOExceptionwasunhandledMessage=Theprocesscannotaccessthefile'\\HOSTNAME\C$\ProgramFiles(x86)\Symantec\SymantecEndpointProtection\seclog.log'becauseitisbeingusedbyanotherprocess.Source=mscor

c# - 读取另一个进程正在使用的日志文件

目标我想在我的GUI上按下一个按钮,从远程机器读取seclog.log文件(symantecAV日志),并将日志的内容显示到我的应用程序中的富文本框。有用的东西除了读取日志文件之外的一切错误信息System.IO.IOExceptionwasunhandledMessage=Theprocesscannotaccessthefile'\\HOSTNAME\C$\ProgramFiles(x86)\Symantec\SymantecEndpointProtection\seclog.log'becauseitisbeingusedbyanotherprocess.Source=mscor