fsutil file createnew <filename> <length>
where <length> is in bytes.
For example, to create a 1MB (Windows MB or MiB) file named ‘test’, this code can be used.
fsutil file createnew test 1048576
fsutil requires administrative privileges though.