Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

LMDShellNotify FolderDelete not triggered

The LMDShellNotify triggers the ShellChangeNotify event whenever a folder or file is created or renamed but - despite there being a specific event and NotifyEventType, the LMDShellNotify is not triggered when a folder is deleted. However there is notification when a file is deleted. 

Is this correct behavior? Is there something special about deleting folders that I need to be aware of?

(version 2022.9 - 06/05/2023)

Comments

  • 5 Comments sorted by Votes Date Added
  • Hi,

    Need some time to check...
  • Please, try to set MaxNotifications property to zero, and let me know whether this helps.
  • While testing with your ShellPack_Notify demo (with the suggested change) I realised that the results differ depending on the folder location. When adding, renaming & deleting a folder in C:\Temp it works correctly. But when I do the same in C:\Users\dwilb\Documents\Test.Folder (or other MyDocuments folders) the results are incorrect.

    OnFolderCreate:  "C:\temp\New folder"
    OnShellChangeNotify:  "C:\temp\New folder"
    OnShellChangeNotify:  ""
    OnFolderRename:  "C:\temp\New folder"  "C:\temp\A test"
    OnShellChangeNotify:  "C:\temp\New folder"  "C:\temp\A test"
    OnShellChangeNotify:  ""
    OnFileChange:  "C:\temp"
    OnShellChangeNotify:  "C:\temp"
    OnShellChangeNotify:  ""
    OnDriveSpaceChange  E
    OnShellChangeNotify:  ""
    OnFolderDelete:  "C:\temp\A test"
    OnShellChangeNotify:  "C:\temp\A test"
    OnShellChangeNotify:  ""
    OnShellChangeNotify:  ""

    OnFolderCreate:  "C:\Users\dwilb\Documents\Test.Folder\New folder"
    OnShellChangeNotify:  "C:\Users\dwilb\Documents\Test.Folder\New folder"
    OnFileChange:  "C:\Users\dwilb\Documents\Test.Folder"
    OnShellChangeNotify:  "C:\Users\dwilb\Documents\Test.Folder"
    OnShellChangeNotify:  ""
    OnShellChangeNotify:  ""
    OnDriveSpaceChange  E
    OnShellChangeNotify:  ""
    OnShellChangeNotify:  ""
    OnFileChange:  "C:\Users\dwilb\Documents\Test.Folder"
    OnShellChangeNotify:  "C:\Users\dwilb\Documents\Test.Folder"
    OnShellChangeNotify:  ""
    OnShellChangeNotify:  ""
    OnShellChangeNotify:  ""



  • I tried to test with folders inside Documents folder, but, unfortunately, I cannot reproduce the issue. On my system everything works fine. 
  • I understand, I hate it when my customers do the same to me! I'll test it on some other PCs and can life with it anyway.
Sign In or Register to comment.