Search Web

How can I create 10MB size file in Windows

How can I create 10MB size file in Windows



If you ever want to create test files with different sizes and different formats, use below command from cmd

fsutil is the windows command to create emty file (linux it is dd)
fsutil file createnew <name of file> <size in bytes>
 eg:-
fsutil file createnew C:\temp\10MB-file.pdf 10485760
fsutil file createnew C:\temp\100MB-file.pdf 104857600
fsutil file createnew C:\temp\20MB-file.doc 2097152
fsutil file createnew C:\temp\30MB-file.ppt 31457280
fsutil file createnew C:\temp\1GB-file.xls 1073741824
fsutil file createnew C:\temp\10GB-file.txt 10737418240
fsutil file createnew C:\temp\100GB-file.docx 107374182400


No comments:

Post a Comment