How to delete a file without it getting stored in recycle bin folder .
-
I am working on a website in asp.net with c#. I need to delete a file which should get completely deleted not even be there in recycle bin . Can anyone help me out in this. :doh: THanks :rose:
From where you want to delete file ???
Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"
-
I am working on a website in asp.net with c#. I need to delete a file which should get completely deleted not even be there in recycle bin . Can anyone help me out in this. :doh: THanks :rose:
ritu4321 wrote:
I need to delete a file which should get completely deleted not even be there in recycle bin .
By default, when a file is deleted using the System.IO methods it won't be moved to the Recycle Bin. You have to write specific code to do that.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
I am working on a website in asp.net with c#. I need to delete a file which should get completely deleted not even be there in recycle bin . Can anyone help me out in this. :doh: THanks :rose:
I think u want something like Permanent delete? Once u delete a file then it goes to recycle bin and then it also deleted from recycle bin also?
Believe Yourself™ :->™
-
From where you want to delete file ???
Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"
-
ritu4321 wrote:
I need to delete a file which should get completely deleted not even be there in recycle bin .
By default, when a file is deleted using the System.IO methods it won't be moved to the Recycle Bin. You have to write specific code to do that.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
-
I think u want something like Permanent delete? Once u delete a file then it goes to recycle bin and then it also deleted from recycle bin also?
Believe Yourself™ :->™
-
1st Can u manage to delete it to the disk level? Means it the deleted file goes to R.Bin? If that is achieved then you have to make some registry level code, Cause it becomes the O.S related Operation. Try to search in Operating System Forum for this 2nd level delete problem. But 1st u have to delete file from 1st level, i.e from drives. Just try the below links for 2nd level deletion http://www.thescripts.com/forum/thread255921.html[^] http://www.developerfusion.co.uk/show/162/[^] i hope this will work.
Believe Yourself™ :->™
-
I am working on a website in asp.net with c#. I need to delete a file which should get completely deleted not even be there in recycle bin . Can anyone help me out in this. :doh: THanks :rose:
Select the file .. shift+delete try this
siri
-
I am working on a website in asp.net with c#. I need to delete a file which should get completely deleted not even be there in recycle bin . Can anyone help me out in this. :doh: THanks :rose:
Hiya, It is quiet simple :) My.Computer.FileSystem.DeleteFile("MyFile.txt", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently) I write this line of code in VB but I'm sure that you will know where to put the funny little bracket things:confused: Hope it was helpful!
Lloyd J. Atkinson "Logic will get you from A to B, but imagination will take you everywhere" -ALbert Einstein