To do this, we can use a tool in Windows (XP and above) call fsutil.exe command-line tool
Command syntax:
fsutil file createnew DummyFileName DummyFileSize
DummyFileName = the desire file name
DummyFileSize = the desire file size (in bytes)
Detail Info :
==========================================
C:\>fsutil file /?
/? is an invalid parameter.
---- FILE Commands Supported ----
findbysid Find a file by security identifier
queryallocranges Query the allocated ranges for a file
setshortname Set the short name for a file
setvaliddata Set the valid data length for a file
setzerodata Set the zero data for a file
createnew Creates a new file of a specified size