Quickly create large file on a Windows system
batch-file, windows
Solution
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.
Problem
In the same vein as Quickly create a large file on a Linux system, I'd like to quickly create a large file on a Windows system. By large I'm thinking 5 GB. The content doesn't matter. A built-in command or short batch file would be preferable, but I'll accept an application if there are no other easy ways.