Delete file without sending to recyclebin
-
Hello All, Is there a way to do this? Or if not is there a way to force the recyclebin to empty it's self? Thanks.. is you have code..doesn't matter which language
Have you tried holding down the Shift key when you hit Delete?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Have you tried holding down the Shift key when you hit Delete?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007I think he meant it how to do it programmatically
#region signature my articles #endregion
-
I think he meant it how to do it programmatically
#region signature my articles #endregion
Then he better be specific about it. Besides, when my code delete's a file, it doesn't end up in the RecycleBin. That's a function of the Shell, not the file system.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Then he better be specific about it. Besides, when my code delete's a file, it doesn't end up in the RecycleBin. That's a function of the Shell, not the file system.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Dave Kreskowiak wrote:
Then he better be specific about it.
This message board is really funny. You can easily get attacked for nothing. Sorry Dave perhaps next time i will post my questions on a board that's for programming. I really messed up. Indeed i did mean programatically. At the moment when i delete a file it ends up in the recycle bin. is there a way to empty the recycle bin programatically ?
-
Dave Kreskowiak wrote:
Then he better be specific about it.
This message board is really funny. You can easily get attacked for nothing. Sorry Dave perhaps next time i will post my questions on a board that's for programming. I really messed up. Indeed i did mean programatically. At the moment when i delete a file it ends up in the recycle bin. is there a way to empty the recycle bin programatically ?
How are you deleting the file?? Like I said, the file ending up in the RecycleBin is a function of the Shell, not the file system.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Dave Kreskowiak wrote:
Then he better be specific about it.
This message board is really funny. You can easily get attacked for nothing. Sorry Dave perhaps next time i will post my questions on a board that's for programming. I really messed up. Indeed i did mean programatically. At the moment when i delete a file it ends up in the recycle bin. is there a way to empty the recycle bin programatically ?
Ylno wrote:
You can easily get attacked for nothing.
Dave wasn't attacking you, just suggesting you be a bit more specific with your question. It happens alot on these forums and if someone isn't being specific enough, they will be called upon about it. Being specific helps narrow the problem down :)
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
Hello All, Is there a way to do this? Or if not is there a way to force the recyclebin to empty it's self? Thanks.. is you have code..doesn't matter which language
http://www.discussweb.com/c-programming/3238-empty-recycle-bin-c.html[^]
SHEmptyRecycleBin
(PInvoke) http://msdn2.microsoft.com/en-us/library/ms647739.aspx[^]Vasudevan Deepak Kumar Personal Homepage Tech Gossips