Tuesday, November 5, 2024
HomeWindowsMicrosoft VistaCreate a File of Arbitrary Size with fsutil

Create a File of Arbitrary Size with fsutil

The fsutil command line utility has a number of useful diagnostic and configuration tools for the Windows filesystem. Making a file of an arbitrary size, possibly very large, with this utility is very easy. Making a 1GB file with other methods (Wordpad, perhaps) can be tedious.


To create a 12000 byte file called file.out, use this command from the command line:

fsutil file createnew file.out 12000

To create a 10GB file, use the following:

fsutil file createnew bigfile.out 10737418240

The fsutil command has been maintained through all versions of windows including XP, Vista, and Windows 7.

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

LATEST REVIEWS

Recent Comments

error: Content is protected !!