Create a file with a specific size

Posted by robd on May 31, 2012
Encyrption

On occasion I’ve needed to create a file of a decent size so I can test a copy script or upload or download times.  Here’s how to create a file:

Code to run from a command prompt:

fsutil file createnew <filename> <length>

Length being bytes!

Example:

fsutil file createnew STUPID_FILE.FILE 40000

 

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.