The following Command Prompt command can be used to create a test file of any length.
fsutil file createnew <filename> <filesize in bytes>
For example, to create a 10 megabyte test file:
- Click on the ‘Start’ button
- In the search box type ‘cmd’
- Right-click on Command Prompt and choose ‘Run as administrator’
- Enter the following command:
fsutil file createnew C:\TestFile.txt 10485760
- The file will be located in the C:\ directory.