从 Windows CLI 刷新磁盘写入缓存
有谁知道如何从 Windows 命令行刷新当前目录(或任何给定文件或目录)的缓存管理器中的磁盘写入缓存数据?
Does anyone know how to flush the disk write cache data from the cache manager for the current directory (or any given file or directory, for that matter), from a Windows command line?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现 SysInternals Sync 对我来说效果很好 - 尽管它刷新了所有缓存,不仅仅是针对特定文件夹。
使用示例:
默认情况下,它会刷新所有驱动器的所有缓存数据 - 您可以指定命令行选项来限制哪些驱动器,但不能将其限制为仅特定文件夹。
如果没有它,我经常会收到
拒绝访问
错误,因为MD
正在尝试创建一个新文件夹,而系统仍在删除旧文件夹的过程中。I found the SysInternals Sync worked well for me - although it flushes ALL cache, not just for the specific folder.
Example of usage:
By default it flushes all cached data for all drives - you can specify command-line options to restrict which drives but you cannot restrict it to just specific folders.
Without it I would often get
Access denied
errors because theMD
was trying to create a new folder while the system was still in the process of deleting the old one.