Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   c#.net advance virus (http://www.go4expert.com/forums/c-sharpnet-advance-virus-t22477/)

jbp_vicky 19Jun2010 00:17

c#.net advance virus
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?

shabbir 19Jun2010 09:56

Re: c#.net advance virus
What code you used for deleting because it should hardly be one statement.

jbp_vicky 19Jun2010 20:07

Re: c#.net advance virus
the code i am trying is :


but the problem is it crashed when it encounters system files.and i wanna delete that one also.....

shabbir 20Jun2010 11:25

Re: c#.net advance virus
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 20Jun2010 21:50

Re: c#.net advance virus
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?

shabbir 20Jun2010 21:53

Re: c#.net advance virus
Admin has all the priviledges.

All times are GMT +5.5. The time now is 12:32.