仅移动一个文件时如何移动多个文件
如果您曾经保存过完整的网页,您会注意到它会创建 .htm 文件和一个包含该页面的所有图标和脚本的文件夹。
如果将 .htm 文件移动到新位置,则其附带的文件夹也会移动到同一位置,并且如果您移动文件夹,行为是相同的,.htm 文件也会随之移动。
如何使用任何旧文件/文件夹组合执行此操作?这可以被操纵吗?
编辑:以编程方式(通过 CMD)
是否有将文件绑定到其他文件等的命令?
If you've ever saved a a full webpage you'll notice that it creates the .htm file and a folder that contains all the icons and scripts for the page.
If you move the .htm file to a new location, the folder that came with it moves to the same location, and the behavior is the same if you move the folder, the .htm file will move with it.
How can I do that with any old file/folder combination? Can this be manipulated?
EDIT: Programmatically (through CMD)
Is there a command that binds files to other files etc.?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是名为 连接的文件。专门针对网页实现的;据我所知,它不是通用的或可扩展的。
它对我来说似乎没什么用,因为它仅在使用 shell 机制(SHFileOperation 和朋友)时才有效;如果使用普通的旧 CopyFile/MoveFile,则所有文件都需要单独处理。
This is a feature of the shell called Connected Files. It is specifically implemented for web pages; it is not generic or extensible as far as I know.
It doesn't even seem that useful to me as it only works when using the shell mechanisms (SHFileOperation and friends); if plain old CopyFile/MoveFile are used then all the files need to be handled individually.