在 Windows 中生成随机文件 [英] Generating Random Files in Windows

查看:33
本文介绍了在 Windows 中生成随机文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有办法在 Windows 中生成随机数据文件?我想以生成 50,000 个小 (2K) 文件为例.

Does anyone have a way to generate files of random data in Windows? I would like to generate 50,000 small (2K) files as an example.

推荐答案

您可以在批处理循环中运行 fsutil 来创建任意大小的文件.

You can run fsutil in a batch loop to create files of any size.

fsutil file createnew filename.extension 2000

这篇关于在 Windows 中生成随机文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆