How to Create a Dummy Test File of Any Size in Windows

preview_player
Показать описание
If you need to create an empty blank file for test purposes but need it to be a certain size or a really large file, then it's easy to do so via the command line. All you need to do is use the fsutil command and specify the path, file name and file size in bytes.

Here are the samples and sizing cheat sheet from the video.

fsutil file createnew "c:\users\todds\desktop\1GB Test File" 1073741824

1 MB = 1048576 bytes
100 MB = 104857600 bytes
1 GB = 1073741824 bytes
10 GB = 10737418240 bytes
100 GB =107374182400 bytes
1 TB = 1099511627776 bytes
10 TB =10995116277760 bytes

Check out our book (Computers Made Easy) that is designed to take your computer skills to the next level!
Рекомендации по теме
Комментарии
Автор

Tip: if you run the command in powershell instead of cmd prompt you can create the size with human readable notations in parentheses.
i.e.
fsutil file createnew 1gb.txt (1gb)
fsutil file createnew 100mb.txt (100mb)

alfamari
Автор

Hey, Does this damages your c drive? did this several times ( 50gb, 100gb, 1-2tb. now it's permanently limited to 2-11.3gb ☹)

XioJN