Hooking file move with shell extension?
-
Hey all, When you save a webpage, eg from firefox "Web page, complete", it saves an html file and a folder containing its resources. No problem. But the tricky bit is, you move/copy/delete the html file the resource folder does the same. How do they do that!?? I'm guessing there is some shell extension, but the only thing close I find in MSDN is ICopyHook, which seems more like a proceed/abort confirmation. Thoughts? (and dare I ask...) Examples?
-
Hey all, When you save a webpage, eg from firefox "Web page, complete", it saves an html file and a folder containing its resources. No problem. But the tricky bit is, you move/copy/delete the html file the resource folder does the same. How do they do that!?? I'm guessing there is some shell extension, but the only thing close I find in MSDN is ICopyHook, which seems more like a proceed/abort confirmation. Thoughts? (and dare I ask...) Examples?
It is a Windows shell feature called Connected Files[^] and applies only to HTML files (*.htm, *.html). If you want an application to use that feature it must use shell file operations (SHFileOperation function (Windows)[^], IFileOperation interface (Windows)[^] ) instead of Windows API file operations. I don't know for sure how it is implemented but I guess that it just checks for the existance of matching directories for HTML files and vice versa for directories with the listed extension.
-
It is a Windows shell feature called Connected Files[^] and applies only to HTML files (*.htm, *.html). If you want an application to use that feature it must use shell file operations (SHFileOperation function (Windows)[^], IFileOperation interface (Windows)[^] ) instead of Windows API file operations. I don't know for sure how it is implemented but I guess that it just checks for the existance of matching directories for HTML files and vice versa for directories with the listed extension.