|
When I delete a file from within an application (say, Visual Studio) rather than from Explorer, wouldn't it make more sense for that file to be sent to the recycle bin (rather than be deleted forever)?
I'd say this should be the default behavior, but there are instances where that wouldn't be desired (e.g., an application that continuously creates temp files then deletes them when done with some processing... that'd fill up the recycle bin pretty fast). Maybe a second recycle bin for application-initiated deletes would work (one with its own capacity and "overflow" policy)?
I know we can explicitly code for files to be sent to the recycle bin, but it's almost never done, so I'm thinking doing this by default would be the ideal solution. Perhaps they'll add this to Windows 9 or .Net Framework 5.
|
|
|
|
|
AspDotNetDev wrote: Perhaps they'll add this to Windows 9 or .Net Framework 5.
And if they added this to .Net Framework 5, someone will post:
I know we can explicitly code for files to be deleted permanently, but it's almost never done, so I'm thinking doing this by default would be the ideal solution. Perhaps they'll add this to Windows 10 or .Net Framework 5.5.
So, I think it's the best idea if a programmer is required to pass a moveToRecycleBin boolean or something like that.
ProgramFOX
|
|
|
|
|
Indeed. And the lack of a parameter would leave the option up to the user (with a default of sending to the recycle bin). Maybe an enum with these options:
- UserSettings
- PromptUser
- ForceDelete
- ForceRecycle
|
|
|
|
|
|
That works for Visual Studio, but what of other applications that allow users to delete files (e.g., iTunes)?
Even in Visual Studio, it'd be nice for files to go to the recycle bin when deleted.
|
|
|
|
|
VB has that functionality built in. I am not sure why it is not part of the actual framework, though.
See Here[^].
Bob Dole The internet is a great way to get on the net.
2.0.82.7292 SP6a
|
|
|
|
|
AspDotNetDev wrote: the recycle bin
The what?
What a waste of resources. When I say delete, I mean delete. I disable mine. The recycle bin is for old grannies who don't know what they're doing... and Web developers.
<anecdote>
A piece of HP crapware that got installed with a printer driver a few years back would crash every time I told it to delete a file because I had disabled the recycle bin.
</anecdote>
modified 10-Dec-12 18:53pm.
|
|
|
|