用bat脚本制造超大文件

将下面的文件写道txt文件中并将txt后缀改为.bat 之后点击该批处理脚本即可看到效果。

fsutil file createnew D:ProgrameData.newfile 4096000000

上方代码只作为参考,会在D盘下创造出名为 ProgrameData.newfile 的 3.89GB的超大文件,文件具体大小可以调节最后的参数。如果想要让用户知道结果,可以再在其下方添加命令使其更加友好:

@echo off
fsutil file createnew D:ProgrameData.newfile 4096000000
start mshta vbscript:msgbox("A file of 3.89GB has been created on your DISK D!",0,"Inform")(window.close)

请不要用于恶作剧!




作者:艾孜尔江

原文地址:https://www.cnblogs.com/ezhar/p/13897359.html