c#.net advance virus
|
Go4Expert Member
|
|
| 19Jun2010,00:17 | #1 |
|
does anyone know how to delete any specific type of files from the drive like .txt or something else weather it is system file or normal one.I have tried but can't able to delete to system files....so anyway to do this?
|
|
Go4Expert Founder
|
![]() |
| 19Jun2010,09:56 | #2 |
|
What code you used for deleting because it should hardly be one statement.
jbp_vicky
like this
|
|
Go4Expert Member
|
|
| 19Jun2010,20:07 | #3 |
|
the code i am trying is :
Code:
File.delete(filename); |
|
Go4Expert Founder
|
![]() |
| 20Jun2010,11:25 | #4 |
|
You are trying to run an OS command where you do not have the permission to do so and if you can run your process as admin you will be able to do it.
A programming language cannot get your a command to delete a file even if you do not have the needed permission and so the important thing is not to find that as well. Get to a place where you can have the needed permission.
jbp_vicky
like this
|
|
Go4Expert Member
|
|
| 20Jun2010,21:50 | #5 |
|
pls help me how can i get the permission?? becoz windows being running will not give me permission any how to delete its own files which is also running.Can u help me by giving solution in coding?
|
|
Go4Expert Founder
|
![]() |
| 20Jun2010,21:53 | #6 |
|
Admin has all the priviledges.
|

