Windows – How to delete the files directory when I download a complete page in Firefox

firefoxwindows 7

Using Firefox 19 on Windows 7 I downloaded a webpage using "Save Page As" and saved as "Web Page, complete". It downloads both the html and a folder containing the images, css, and js. The folder and the html are siblings in the directory hierarchy. If I delete or move either the html or files folder the other is deleted or moved along with it.

I realize I just get the html by choosing "Web Page, HTML only" when saving but I'm still baffled as to how this works as I've never seen files linked in this way. Is this a feature in Windows 7? How would one go about deleting one without the other if they wanted to?

Best Answer

This is the Connected Files feature of 2000 and XP and later version of Windows. The rules are pretty simple, if you make a change to an .htm or .html file, and there is a folder in the same directory with the same name, the action will be carried out on it as well.

You can rename either the folder or the html file first, and you will be warned you are disconnecting the html and folder. After this, you can delete either the folder or file.

To turn off this behaviour, you can create this registry key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer

Value: NoFileFolderConnection
Value Type: REG_DWORD
Value Data: 1
Related Question