我保存了一个完整的网页,还有一个文件夹保存了资源但是当我删除网页或将保存的网页移动到其他目录时,与之关联的文件夹也会被删除或移动.那么它背后的代码是什么呢?因为我想对我的网页和文件夹做同样的事情.
在此先感谢您的帮助.
解决方法
HTML文件与其资源文件夹之间的“关联”是
Windows操作系统实现的行为.
它特别适用于网页,包括HTML,JavaScript,甚至是特定的浏览器.
Windows 2000 provides a simple way to connect a primary HTML file to its group of associated files. If Connected Files is enabled,when you perform any of the commands [Copy,Cut,Paste,Move,Delete,Send To] on a file or folder of associated files,the same command is performed on all connected files.
即使官方页面提到“Windows 2000”,在Windows XP和许多(如果不是全部)更高版本的Windows中也会实现相同的行为.
请参阅以下页面:
> Removing file / folder link after using “Save As…” then “Web Page,complete”
> Operations on an HTML file or folder apply to similarly named folder or HTML file(来自Microsoft支持)