windows create the specified file size

In routine testing, especially when it comes to storage capacity, we may need to specify the size of the file. Next, create the specified size in the windows file a brief introduction:

Use fsutil named, can be viewed in cmd window  fsutil support of command, as

 It can be seen, we can fsutil file createnew to specify the size of the new command file

 

Usage : the fsutil File CreateNew  File Name File Size

如: fsutil file createnew D:\test.txt 1024  

Create a test.txt in the D disk file, the file size is 1KB

 

 

 

Remarks:

1, the size of the file unit is designated byte, 1024Bytes = 1kB 1024KB = 1MB 1024MB = 1GB

2, file type and file size is set according to the actual

 

Guess you like

Origin www.cnblogs.com/zhuzhu1214/p/11540008.html