Icons don't update on Desktop on file delete

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Argimko
Junior Member
Junior Member
Posts: 4
Joined: 2017-02-22, 06:53 UTC

Icons don't update on Desktop on file delete

Post by *Argimko »

Hello Christian!

Sometimes, when I delete file at TC window from Desktop folder, it doesn't refreshes items on the desktop.

I see this error is about 1 or 2 years.

Please, move your Desktop folder outside of User Profile folder, for example, move it to D:\Desktop to increase a chance to catch the bug.

Please, see the video for detailed info: https://youtu.be/ysKjEZSXJIM

1. Delete file with context menu from TC: OK
2. Rename file: OK
3. Delete file with Del key from TC [want to fix]: Fail
4. Delete file from Explorer [don't want to fix]: Fail

So, could you, please, call SHChangeNotify every time when TC remove folder or file directly from Desktop folder, AHK code for example:

Code: Select all

DllCall("shell32\SHChangeNotify", Int,SHCNE_DELETE := 0x4, UInt,SHCNF_PATH := 5, Str,"path_to_some_item_directly_on_desktop", Ptr,0)
Obviously, seems, it is Windows bug, but seems they are not plan to fix it, so could you make this workaround, please :)

This bug reproduced at Windows 10 21H2, 22H2 with TC v9.x, v10.x 32-bit and 64-bit.

Thank you!
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Icons don't update on Desktop on file delete

Post by *Horst.Epp »

Not confirmed here
The addition or deletion of files or links to/from the desktop updates it immediately.
I don't move my desktop out of my users folder as this is the normal place for it.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3278
Joined: 2003-05-06, 11:46 UTC

Re: Icons don't update on Desktop on file delete

Post by *Sir_SiLvA »

Argimko wrote: 2022-11-19, 18:06 UTCObviously, seems, it is Windows bug, but seems they are not plan to fix it, so could you make this workaround, please :)
Sorry, but why should TC implement a workaround for an Windows bug?
(I have never seen this as I dont move the desktop folder)
Hoecker sie sind raus!
Argimko
Junior Member
Junior Member
Posts: 4
Joined: 2017-02-22, 06:53 UTC

Re: Icons don't update on Desktop on file delete

Post by *Argimko »

Silva, doing Windows and other app related (like Norton CleanSweep) bug workarounds allowed Total Commander being so perfect file manager.

I think the next detail is important to reproduce the bug:

Windows Recycle Bin "Display delete confirmation dialog": option is Off

Code: Select all

[wincmd.ini]
UseTrash = 1
Win95Delete = 0
VistaDelete = -1
DeleteDelay = 0
Post Reply