Show deletion type on custom delete prompt
Show deletion type on custom delete prompt
The native Windows delete confirmation shows a different message depending on whether the files are being sent the the recycle bin or being permanently deleted. Can the custom XY prompt incorporate this? Thanks.
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Show deletion type on custom delete prompt
I would if I could. But there is no clear way to decide what kind of delete will happen.
FAQ | XY News RSS | XY Twitter
Re: Show deletion type on custom delete prompt
So I'm not sure if there is a method in the Windows API that let's you get the recycle bin status for a particular folder, but if there is maybe someone could chime in as that would be easiest .admin wrote:I would if I could. But there is no clear way to decide what kind of delete will happen.
Assuming there isn't a method in the API, I was able to come up with a list of a few things to check:
- If shift-delete then it will always bypass the recycle bin.
- If [HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]\NoRecycleFiles = 1 then the recycle bin is disabled globally.
- [HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\BitBucket\Volume] contains a list a GUIDs (some for predefined locations and some for drives). Each key contains a DWORD called NukeOnDelete, which if set to 1 bypasses the recycle bin for that location/drive.
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Show deletion type on custom delete prompt
Here is one more:
- Items longer than 259 characters never go to the recycler.
- Items longer than 259 characters never go to the recycler.
FAQ | XY News RSS | XY Twitter