My Delphi application frequently deletes files, etc. and if the user is exploring that directory I want to get it to automatically refresh.
For example, My Computer should automatically refresh.
I have googled but have not found a thing. I have no idea how to do this :/
Cheers for any advice!
Adrian
Call the SHChangeNotify() function when you delete a file. This will notify the shell, which in turn will notify it’s observers such as the Windows File Explorer. TortoiseSVN does it this way (Evidence here).
Also see: