Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I sometimes encounter some viruses that create its files as autorun.inf and an exe file in drives I am able to find them and clear them but a virus process will create them again.
Can I develop a C# code to find the virus process and delete the file (that is certainly locked)?

Thanks in advance.
Posted
Updated 15-Nov-11 9:07am
v2

You would be better off using a commercial virus scanner, rather than relying on a simple C# program - there are so many ways that a malicious program could potentially perform such operations, that it would be very, very difficult to detect the culprit (or infected programs if it is indeed a true virus).

They don't have to cost money - Microsoft Security Essentials is free and seems to work fine.
 
Share this answer
 
"process monitor" do something like this you can download it for free from this link (http://technet.microsoft.com/en-us/sysinternals/bb896645)
also with unlocker (http://download.cnet.com/Unlocker/3000-2248_4-10493998.html) you can delete the file but I don't know the c# code. it would be great if someone knows about c# code.
 
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