且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Windows如何将html文件链接到文件夹?

更新时间:2023-02-01 12:38:47

这是一个shell功能,而不是文件系统功能。在复制/移动.htm [l]文件时,shell复制引擎只会查找具有相同名称的文件夹(加上本地化后缀)。



该功能称为Connected文件并且记录这里


Almost every time you save a web page from a web browser to your local computer a PAGENAME.html(htm) file is created and a folder named 'PAGENAME_files' that contains resources specific to that page.

If you copy/move/delete either the folder or the .html file windows automatically does the same operation the other file as well.

This behaviour also happens if you create a file named 1.html and a folder called 1_files.

How does this link happen? And Why it works only with web files?

Edit: For those who are downvoting please explain the reason. I did searches on google and came up with nothing. The same thing on ***.

This is a shell feature, not a file system feature. The shell copy engine just looks for a folder with the same name (plus a localized suffix) when copying/moving .htm[l] files.

This feature is called Connected Files and is documented here.