Command Line Utility to Create Test Files
31 Jul 2009In the past I’ve used FSUTIL to create large test files of data to process. Unfortunately you need administrator permissions to use this utility. I decided to write a command line utility (called “Make Test File” but abbreviated to MTF.EXE) to allow non-administrators to do the same. It’s written in VB.NET so it isn’t as quick as FSUTIL, but as they say “it does the job”, and it fulfilled my immediate needs.
It takes two parameters - the size of the file (in bytes) and the file
path to write the file to. To see an example of how to use it and the
output click on the thumbnail image on the right. The resulting file
just contains zeros.
If there’s any demand I may look into additional features such as being able to specify what the file is filled with or creation of multiple files using some sort of incremental naming convention.