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.
You can use the cat powershell command.
First create a simple text file with a few characters. The more initial chars you enter, the quicker it becomes larger. Let's call it out.txt. Then in Powershell:
cat out.txt >> out.txt
Wait as long as it's necessary to make the file big enough. Then hit ctrl-c to end it.