Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I saved an HTML web page using Google Chrome. An HTML file along with a folder containing the images was saved on my computer. Now when I move the HTML file to a different location or delete it, the folder moves along with it.

How is this association enforced?

I am seeing this behavior on Windows. Is it something specific to NTFS? Can it also be achieved on Linux?

share|improve this question
Possible duplicate: – Rowland Shaw Feb 9 '11 at 9:00
up vote 12 down vote accepted

This is specific to the Windows shell, and applies only to .htm and .html files. If you'd moved the file from a Command Prompt, the associated folder would stay in place. In Windows XP, this behavior is controllable via Tools -> Folder Options in an Explorer window (or the Folder Options icon in the Control Panel). On the View tab, under Advanced settings is a group of options labeled "Managing pairs of Web pages and folders".

The GUI option to change this behavior appears to be gone from Windows 7; I'm not sure about Vista.

The feature can be managed via the registry. The key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer, DWORD value NoFileFolderConnection. Disable the feature by setting the value to 1. Re-enable the feature by setting the value back to 0 or deleting the value altogether.

The feature itself is called Connected Files, and a reference is available at this MSDN page.

To extend this feature beyond just HTML pages and their associated folders, you'd have to implement everything yourself. SHFileOperation already has special support for connected files, but there doesn't seem to be any means by which to extend it.

Since the feature is shell-dependent, it'd have to be recreated in the file managers in Linux.

share|improve this answer
I am using Windows 7. And there must be a way to establish it programatically as Google Chrome is doing it for the saved HTML files. – Rohit Banga Jan 29 '11 at 4:49
@iamrohitbanga: Nope -- it's driven entirely by the file/folder names. Updated my answer with more information and references. I'm curious what the downvote was for though, for whomever did that. – afrazier Feb 9 '11 at 18:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.