如何在Windows中生成确定大小的文件? [英] How to Generate File of a determinate Size in Windows?
本文介绍了如何在Windows中生成确定大小的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最好,最快的方法是什么?
How is the Best and fastest way to do it?
推荐答案
I found this Page, I try it and work great.
要创建单个文件,请使用
To create a single File use
fsutil file createnew filename filesize
要创建很多文件,请使用
To create a lot of Files use
For /L %i in (1,1,25000) do fsutil file createnew A%i.tmp 12288
将创建25,000个12288字节(12KB)的文件,名称分别为A1.tmp,A2.tmp,A3,tmp ...
will create 25,000 files of 12288 bytes (12KB) named A1.tmp, A2.tmp, A3,tmp…
这篇关于如何在Windows中生成确定大小的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文