开发者

Create file with certain size

Is there any method to create a file of desired size when开发者_如何学运维ever I create a file using CreateFile().

Thanks.


SetEndOfFile can be used to extend or truncate a file.


I think (in case you are sitting in front of a *nix box) you can handle this with the default low-lewel write() / fsync() APIs.

Regards, dley


you might use, at the prompt (with admin credentials), "fsutil file createnew" followed by the file name and the desired size (in bytes)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜