如何使用C#.Net应用程序扫描文件 [英] How to scan a file using C# .Net application

查看:107
本文介绍了如何使用C#.Net应用程序扫描文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在我的.net应用程序中,我想扫描一个文件并检查它是否没有病毒。



详细说,我将有一个Windows服务,这是一个文件夹观察服务。每当文件进入特定文件夹时,此服务应扫描该文件以检查其是否不受任何病毒的影响。如果受病毒影响,请将其移至故障文件夹,如果没有病毒,请将其移至成功文件夹。



可以这样做吗?如果是这样,请帮助我。



先谢谢,

Mathi。

Hi,

In my .net application I wanted to scan a file and check if it virus free.

To say in detail, I'll have a windows service which is a folder watcher service. Whenever a file enters to a specific folder this service should scan the file to check if it is not affected with any virus. If it is affected with Virus move it to a failure folder and if it free of virus move it to the succeeded folder.

Can this be done ? If so please help me in this.

Thanks in Advance,
Mathi.

推荐答案





如果你去C ++会更好



但不重要你可以使用一些API /引擎。 : http://sourceforge.net/projects/zillyaavengines/?source=directory [ ^ ]



另一个有趣的API,但付费: http://www.opswat.com/products/metascan [ ^ ]



Microsoft Free API但目的不同: http://msdn.microsoft.com/ en-us / library / ms537365%28v = vs.85%29.aspx [ ^ ]





谢谢,

Suvabrata
Hi,

Its better if you go to C++

but dose not matter there is some API/Engine which you may use. :http://sourceforge.net/projects/zillyaavengines/?source=directory[^]

Another interesting API but Paid : http://www.opswat.com/products/metascan[^]

Microsoft Free API but purpose is different : http://msdn.microsoft.com/en-us/library/ms537365%28v=vs.85%29.aspx[^]


Thanks,
Suvabrata


这篇关于如何使用C#.Net应用程序扫描文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆