Manually flushing write cache on Windows

On *nix systems, a user can use the sync command to force any pending writes in the kernel's disk cache to be flushed to disk. Does Windows have a similar command?


Solution 1:

Yes - it's also called Sync, it's part of the SysInternals Suite:

Use it whenever you want to know that modified file data is safely stored on your hard drives. Unfortunately, Sync requires administrative privileges to run. This version also lets you flush removable drives such as ZIP drives.

Solution 2:

Yes. Looking for sync.exe I found that there is a SysInternals program to do just that. I have not used it, but I have never found a SysInternals utility which did not work extremely well.

It can be down-loaded separately, or as part of the Suite.