如何在VB.NET中隔离病毒文件 [英] How can I quarantine a virus file in VB.NET

查看:102
本文介绍了如何在VB.NET中隔离病毒文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我在vb.net上制作了一个防病毒工具,我想知道是否有人有任何代码或者可以告诉我如何在vb.net中隔离和隔离文件任何技术。香港专业教育学院尝试将文件从一个目的地移动到另一个目的地,但不知道从那时起我应该做些什么。



我尝试了什么:



感谢原版吉夫的帮助我觉得他的名字是我在移动代码上得到的最后一个问题

File.Move(Labellastreal .Text,Path.Combine(Application.StartupPath&\ Quuarantine \,Path.GetFileName(Labellastreal.Text)))

Hello I'm making an antivirus tool in vb.net and i was wondering if anyone had any code or could talk me through how i could make a quarantine and quarantine the file in vb.net any techniques. ive tried moving the file from one destination to another but not sure what i should do from then.

What I have tried:

thanks to the help of original giff i think was his name on the last question i got this for the move code
File.Move(Labellastreal.Text, Path.Combine(Application.StartupPath & "\Quarantine\", Path.GetFileName(Labellastreal.Text)))

推荐答案

为了善良的缘故。

听听别人告诉你的内容:如何移动文件VB.NET [ ^ ]

不要为你的路径连接字符串:使用没有&的Path.Combine。

Don不要将您认为包含恶意代码 的文件存储在您的应用路径下。



我读的问题越多,我使用防病毒软件的可能性就越小 - 我对你作为开发人员的能力没有任何信心;我认为这对你来说是一个糟糕的项目,你需要练习,直到你先将基本技能组合排序......
For goodness sake.
Listen to what people tell you: How to move file VB.NET[^]
Don't concatenate strings to for your path: use Path.Combine without "&".
Don't store files you believe contain malicious code under your app path.

The more I read of your questions, the less likely I am to ever use your "antivirus" - I don't have any confidence in your abilities as a developer; I think this is a bad project for you and you need to practice until you get the basic skill set sorted first...


你不断询问隔离问题,你只是在改变详情。

You are continuously asking questions around quarantine, you are just changing the details.
引用:

我如何在vb.net中隔离和隔离文件任何技术。

how i could make a quarantine and quarantine the file in vb.net any techniques.



您已经被告知隔离是您的设计,您将它放在您想要的位置,您对文件执行的操作是您的设计,您可以使用文件执行所需操作。您的AV设计是一个整体,隔离是AV的一部分,隔离设计取决于AV设计。

如果您希望我们进行设计,请考虑聘请专业人员来完成工作。


You have already been told that a quarantine is your design, you put it where you want, what you do with the files is your design, you do what you want with the files. Your AV design is a whole, quarantine is part of the AV, the quarantine design depend on the AV design.
If you want us to do the design, think about hiring a professional to do the job.

Quote:

如何在VB.NET中隔离病毒文件

How can I quarantine a virus file in VB.NET



隔离文件正在将文件移动到您设计为隔离区的目录中。

答案与上一个问题完全相同。


Quarantine a file is moving the file in directory you designed as quarantine place.
the answer is exactly the same as in your previous question.


这篇关于如何在VB.NET中隔离病毒文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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