Thursday, January 1, 2009

Creating empty file of specific size in Windows

Sometimes you need to create a file of specific size, just of testing. You could, this would never happen to me, but just in case you do, here is a way to do this in windows (I found it here after downloading several miserable utilities that claimed to do the trick but did not work).

Go to the directory you need the file in with your shell and run this (size is in bytes)

fsutil file createnew FileName Size

No comments: