Copy a file without using the windows file cache

后端 未结 6 1434
情深已故
情深已故 2021-01-01 00:42

Anybody know of a way to copy a file from path A to path B and suppressing the Windows file system cache?
Typical use is copying a large file from a USB drive, or server

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-01 01:23

    Even more important, there are FILE_FLAG_WRITE_THROUGH and FILE_FLAG_NO_BUFFERING.

    MSDN has a nice article on them both: http://support.microsoft.com/kb/99794

提交回复
热议问题