Howto: Create a File of whatever size you want in Windows
You can create a file of any size using nothing more than what’s supplied with Windows.
There comes a time in every developers life where they need a data file for testing purposes and there are none handy. Rather than searching around for a file that fits your needs, the easiest thing to do is simply to generate one. There are a number of reasons why you might want to generate a data file. For example, recently we needed to test the file upload functionality of a little application we were writing at work, using a whole range of files of different sizes (from <1mb to="" up="">100Mb).