Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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)))
Posted
Updated 20-Aug-17 2:48am
Comments
Graeme_Grant 20-Aug-17 7:42am    
I look at your alias, not even your real name, and it says a lot... This is your 4th question in 24 hours, each one a step after the next.

You know that programming is not asking questions and getting everyone else to do it? That is called delegation! Programming is solving problems through research, learning, and coding...

Where is your where code where you have actually tried?
Helpmecodeplz 20-Aug-17 8:06am    
i know ive just lately been stuck on a few thing most of the code ive done on my own just some parts arent working
Graeme_Grant 20-Aug-17 8:07am    
Post your code
Richard MacCutchan 20-Aug-17 8:51am    
If you are writing an anti-virus application (which I very much doubt), then quarantining a file is the very least of your problems.

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...
 
Share this answer
 
Comments
Helpmecodeplz 20-Aug-17 9:13am    
thanks im sorry im just confused
OriginalGriff 20-Aug-17 10:08am    
That's kinda the whole point: you shouldn't *be* confused about this kind of stuff because it's pretty much as basic as it gets - and writing something you can trust as an antivirus is not basic at all!

I'm not trying to upset or belittle you, I just think you need to understand a lot more before you start something like this, and your responses seem to indicate you are ignoring anything you don't understand, instead of thinking about them, and wondering "why does he think that matters? What am I missing?"

I suspect that what you are developing is not an "anti-virus" but an "after-virus" - something that detects virus activity after it has happened, too late to prevent problems. That's worrying, because if all you are doing is comparing files with their original state, you have no way to tell what caused the change - so it will happen again, and again, and again ...
You are continuously asking questions around quarantine, you are just changing the details.
Quote:
how i could make a quarantine and quarantine the file in vb.net any techniques.

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:
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900