cmd fsutil生成指定大小文件

概要

>fsutil file createnew /?
用法 : fsutil file createNew <filename> <length>
例如 : fsutil file createNew C:\testfile.txt 1000

生成单位:Byte

测试用例

生成1KB的文件

fsutil file createNew 1.txt 1024

生成1MB的文件

2^20 = 1024 * 1024 = 1048576

fsutil file createNew 1.txt 1048576

温馨提示:生成文件过大时,注意不要手贱点开了


生成1GB的文件

2^30 = 1024 * 1024 * 1024 = 1073741824

fsutil file createNew 1.zip 1073741824
posted @ 2024-09-23 21:08  彼时今日  阅读(191)  评论(0)    收藏  举报