Tag: 杀毒软件

用于Windows的文件的服务器端病毒扫描

我需要通过我的ASP.NET网络应用程序扫描Windows服务器上的上传文件。 但是,我不知道反病毒软件包是否带有“api”类型的东西,我可以通过编程方式触发扫描。 如果可能的话,我真的想避免任何类型的Windows调度来触发防病毒,然后报告错误。

如何在C#中检测Windows Server 2008上的防病毒软件?

我在搜索答案时已经看过很多次类似于以下的代码示例: using System; using System.Text; using System.Management; namespace ConsoleApplication1 { class Program { public static bool AntivirusInstalled() { string wmipathstr = @”\\” + Environment.MachineName + @”\root\SecurityCenter”; try { ManagementObjectSearcher searcher = new ManagementObjectSearcher(wmipathstr, “SELECT * FROM AntivirusProduct”); ManagementObjectCollection instances = searcher.Get(); return instances.Count > 0; } catch (Exception e) { Console.WriteLine(e.Message); } return false; } […]