Desktop Recycle Bin Doesn't "Empty"

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
phred
Posts: 244
Joined: 26 Dec 2021 02:10
Location: Running Windows 10 at 100% from Boston USA

Desktop Recycle Bin Doesn't "Empty"

Post 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
2024-03-24_08-00-51.jpg (78.21 KiB) Viewed 267 times
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

phred
Posts: 244
Joined: 26 Dec 2021 02:10
Location: Running Windows 10 at 100% from Boston USA

Re: Desktop Recycle Bin Doesn't "Empty"

Post by phred »

Bumped for visibility

jupe
Posts: 2805
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Desktop Recycle Bin Doesn't "Empty"

Post 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.

GreetingsFromPoland
Posts: 224
Joined: 29 Sep 2022 14:20
Location: Win10 @125%

Re: Desktop Recycle Bin Doesn't "Empty"

Post 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
Image-004.png (11.4 KiB) Viewed 183 times
should i be using a different entry in the Icon field ?

phred
Posts: 244
Joined: 26 Dec 2021 02:10
Location: Running Windows 10 at 100% from Boston USA

Re: Desktop Recycle Bin Doesn't "Empty"

Post 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.

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Desktop Recycle Bin Doesn't "Empty"

Post by highend »

Custom event actions - Changing Locations - After browsing a folder

The variable to use in such a script is: <oldpath>...
One of my scripts helped you out? Please donate via Paypal

phred
Posts: 244
Joined: 26 Dec 2021 02:10
Location: Running Windows 10 at 100% from Boston USA

Re: Desktop Recycle Bin Doesn't "Empty"

Post 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.)

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Desktop Recycle Bin Doesn't "Empty"

Post by highend »

It's a simple if check followed by a command id execution if true...
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 2805
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Desktop Recycle Bin Doesn't "Empty"

Post by jupe »

@GreetingsFromPoland: viewtopic.php?p=160018#p160018

phred
Posts: 244
Joined: 26 Dec 2021 02:10
Location: Running Windows 10 at 100% from Boston USA

Re: Desktop Recycle Bin Doesn't "Empty"

Post 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.

Post Reply