Delete Confirmation Box for Network Drives

G

Guest

Greetings,

I'm a programmer, so I delete various versions of my source code all day
long. Therefore, I unchecked the "Display delete confirmation dialog"
checkbox in the Recycle Bin Properties window.

However, on networked drives/shares, deleted files don't go to the recycling
bin, and that makes me quite nervous. Is there any way to enable the delete
confirmation the network shares and drives while disabling it for local
drives?

Thank you!

Eric
 
A

allan grossman [mvp]

Hi, Eric -

I'm *not* a programmer, but do know that darn near
anything is possible if someone's willing to do the
footwork; that said, the short answer to your question
is 'no' - it's not possible to enable a delete
confirmation dialog for network shares with the tools
available in Windows XP.

The mechanism for removing files from a network share and
the one for removing them from a local filesystem are
completely different - and when you consider that Windows
XP needs to be able to interact with several different
network filesystems I imagine you can see where at least
part of the issue lies.

Perhaps someone will come along with a better answer for
you.
 
G

Guest

Thank you for the reply, Allan. You make a good point. I guess I'll take
it upon myself to program the solution. (I love a good challenge!)

Take care,

Eric
 
D

Doug Knox MS-MVP

When you delete files from a network share, they never go in the Recycle Bin. This is by default. And no, its either or.
 
G

Guest

Thanks for the post, Doug.

Is there a local Windows system event that fires when the user issues the
command to delete a file/directory? If so, I may be able to trap/handle it
in my code.

Or is this something that can only be done by peeking at Microsoft's source
code? :)

Thanks,

Eric


When you delete files from a network share, they never go in the Recycle
Bin. This is by default. And no, its either or.
 
G

Guest

Thanks Imran.

I looked into this, but it only has a "Delete" event, so file(s) would have
already been deleted. Does anyone know how to inherit the FileSystemWatcher
class, and add a "Deleting" event to handle this?

Thank you.
 
Joined
Sep 11, 2009
Messages
17
Reaction score
0
This thread is the second result when googling; "display delete confirmation dialog" network share. Has anyone found/made a solution? I'm sure alot of people would like this possibility.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top