0

When saving a web page a page.html file and page_files folder are created and are linked together.

How does it work? Is it possible to imitate this behavior for custom file types?
If it's possible, can it be applied by changing settings (file/registry/etc) that maybe linked to an executable/script that checks the connection, or an external program is needed to create and handle it?

I'd like to get information about this behavior, and possible explanation of how it works, limitations etc. Thanks!

enter image description here

enter image description here enter image description here

I'm using Windows 10 (1803), but it exists in multiple previous Windows versions, as far as I can remember.

arieljannai
  • 3,079
  • 5
  • 20
  • 36

1 Answers1

1

At a guess, it might be built into Explorer as a simple check specifically for HTML files.

Currently, you can create any folder with _file or _files at the end and, assuming there is a similarly named item ending in .htm or .html (regardless if it is actually an HTML file), the two items will be "associated" as long as that naming scheme is kept.


Note that this Super User answer seems to confirm it is based around Explorer (and has been around since at least Windows 2000 according to this StackOverflow answer).

Tangentially, while the option to toggle this association on and off was apparently dropped in Windows Vista, this Microsoft Answers forum post details a registry hack to re-enable the toggling feature (which is based around Explorer). Unfortunately, it doesn't seem to provide any clues about creating new type associations.


Anaksunaman
  • 16,718
  • 4
  • 38
  • 45