2014-06-23

Windows: Quickly create large file for test

C:\test>fsutil file

---- FILE Commands Supported ----


findbysid               Find a file by security identifier

queryallocranges        Query the allocated ranges for a file

setshortname            Set the short name for a file

setvaliddata            Set the valid data length for a file

setzerodata             Set the zero data for a file

createnew               Creates a new file of a specified size

queryfileid             Queries the file ID of the specified file

queryfilenamebyid       Displays a random link name for the file ID


C:\test>fsutil file createnew

Usage : fsutil file createnew <filename> <length>

   Eg : fsutil file createnew C:\testfile.txt 1000


C:\test>fsutil file createnew test1MB 1048576

File C:\test\test1MB is created


C:\test>fsutil file createnew test100MB 104857600

File C:\test\test100MB is created


C:\test>fsutil file createnew test1GB 1073741824

File C:\test\test1GB is created


http://tweaks.com/windows/62755/quickly-generate-large-test-files-in-windows/

 

No comments: