On Mac I can create a random 5GB file like this
dd if=dev/urandom of=~/random5gb bs=1000000 count=5000
Is there an equivalent command in Windows XP? I want it to be able to run in a '.bat' file that I'm creating.
Open up Windows Task Manager, find the biggest process you have running right click, and click on Create dump file . This will create a file relative to the size of the process in memory in your temporary folder. You can easily create a file sized in gigabytes.
There are two commands you can enter in the Command Prompt to create a dummy file: fsutil file createnew filename size. fsutil file createnew pathfilename size.
Try
fsutil file createnew <filename> <length>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With