Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hooking file move with shell extension?

Hooking file move with shell extension?

Scheduled Pinned Locked Moved C / C++ / MFC
htmllinuxhelpquestiondiscussion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheHeadlessSourceMan
    wrote on last edited by
    #1

    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?

    J 1 Reply Last reply
    0
    • T TheHeadlessSourceMan

      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?

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      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.

      L 1 Reply Last reply
      0
      • J Jochen Arndt

        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.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        The HTML filename is used to create the associated directory, so they are connected by name.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups