Page 1 of 1
Desktop Recycle Bin Doesn't "Empty"
Posted: 24 Mar 2024 13:10
by phred
Using 25.80 on a Win10 PC.
I tried a forum search on "recycle bin" and look at the first two of the 98 pages of hits, so I apologize if this has been asked/answered before.
I have a custom toolbar button for the recycle bin.
2024-03-24_08-00-51.jpg
When I click it a new tab opens with the contents of the recycle bin. I then select all the files and right-click delete. The files are deleted from the recycle bin as expected. However, the stock recycle bin on my desktop does not change to the "empty" icon. When I open the desktop bin, it is indeed empty. If the bin contains files and I empty it from the desktop icon, the icon changes to "empty."
I would assume XY would also cause the icon to change to empty, but it doesn't. I would also assume that if other users were seeing the same behavior, it would've been reported.
I just tried it with a fresh XY and the icon behaves as expected.
Ideas? Suggestions?
Thanks
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 28 Mar 2024 13:11
by phred
Bumped for visibility
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 29 Mar 2024 06:37
by jupe
Selecting all the files in the RB and deleting them probably wouldn't reliably send out the required windows message that alerts apps/shell that the RB has been emptied, if you use something like #642 instead, you may have better results.
I personally don't use the RB, but a difference between fresh and your conf is possibly CustomCopy being enabled, or x64 ctx menu.
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 29 Mar 2024 09:55
by GreetingsFromPoland
hi! i am using #642; and it properly empties and displays the correct icon state on the Desktop; however, the problem i have is with the icon display on the XY toolbar. i always shows it as full, regardless of the Desktop icon state (full or empty).
i am assuming it is a problem with my CTB, do you see anything wrong here ? when clicked, it works, it just never updates the display :
Image-004.png
should i be using a different entry in the Icon field ?
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 29 Mar 2024 13:38
by phred
Thank you both!
Using #642; empties the bin and refreshes the icon.
Perhaps this will require a script (I've yet to dive into XY's scripting) but is there a way to click the recycle bin icon on the toolbar, have XY go to the bin, and then once I've looked at what's in there execute #642 to empty the bin?
Thanks again for getting the initial issue resolved.
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 29 Mar 2024 13:45
by highend
Custom event actions - Changing Locations - After browsing a folder
The variable to use in such a script is: <oldpath>...
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 29 Mar 2024 14:03
by phred
highend wrote: ↑29 Mar 2024 13:45
Custom event actions - Changing Locations - After browsing a folder
The variable to use in such a script is:
<oldpath>...
Thanks highend. You've given me the start. Now to work though the scripting section of the PDF help file. Be prepared for follow-up questions. (Me being pessimistic on my attempt.)
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 29 Mar 2024 14:35
by highend
It's a simple if check followed by a command id execution if true...
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 29 Mar 2024 18:30
by jupe
Re: Desktop Recycle Bin Doesn't "Empty"
Posted: 29 Mar 2024 20:37
by phred
After trying to read through some of the scripting documentation, I've come up with an easier solution until I'm ready to tackle scripting.
I've edited the CTB so that
On left-click = goto "%recycler%"
On middle-click = #642;
I recognize that this is a two-step process, but it gives me time to look at the bin contents before emptying the whole thing.
Thanks to all who have commented and offered suggestions.