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:

Length being bytes!

Example:

 

Leave a Reply

Your email address will not be published.

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

Copy Protected by Chetan's WP-Copyprotect.