Reputation: 227
In windows, have any command line or API can do the below questions (for internal hard disk)?
Does anyone have similar experiences?
Upvotes: 1
Views: 1495
Reputation: 227
http://www.codeproject.com/Articles/259577/How-to-flush-a-storage-volumes-the-file-cache-lock
The link fix the question 2 and 4. Thanks for everyone's help!
Upvotes: 0
Reputation: 227
http://msdn.microsoft.com/en-us/library/windows/desktop/aa364439(v=vs.85).aspx
But the API is for a file, not for a disk.
Can I flush all file's buffers in the target disk?
Upvotes: 1