Using fsutil command we can create dummy files with specific size in Windows.
Syntax: fsutil file createnew<file name> <file size in bytes>
Open command prompt and enter this command to create a file with 1 MB size.
Command : fsutil file createnew c:\temp\test-file 1048576
How to create dummy file with 100 MB file size
fsutil file createnew c:\temp\test-file 104857600
Generate dummy file with 1 GB file size
fsutil file createnew testfile 1073741824
Create dummy file with 100 GB file size
fsutil file createnew testfile 107374182400
Conversion table : Sizes in Bytes
Size | Mega Bytes(MB) | Kilo Bytes (KB) | Bytes |
10 GB | 10240 | 10485760 | 10737418240 |
20 GB | 20480 | 20971520 | 21474836480 |
30 GB | 30720 | 31457280 | 32212254720 |
40 GB | 40960 | 41943040 | 42949672960 |
50 GB | 51200 | 52428800 | 53687091200 |
100 GB | 102400 | 104857600 | 107374182400 |
200 GB | 204800 | 209715200 | 214748364800 |
300 GB | 307200 | 314572800 | 322122547200 |
400 GB | 409600 | 419430400 | 429496729600 |
500 GB | 512000 | 524288000 | 536870912000 |
1 TB | 1048576 | 1073741824 | 1099511627776 |
fsutils – Full options