Windows 10 can create a dummy test file of any size for you.
Continue reading the article to learn how to do so using just the Command-Line.
Note that all of these methods create a single dummy file at a time.

Therefore, you might need to initiate the same command multiple tiles to create any number for the files.
Choose the one that best suits your needs.
Choose any of the following methods to fulfill your needs.

If not used carefully, it can be fatal for your operating system.
Therefore, we recommend that youcreate a restore pointbefore moving forward.
To create empty dummy files of any size or bang out,launch the Command Prompt with administrative privileges.

Now modify the command given below as per your requirement and execute within Command Prompt.
There are several variables in the command above.
You also need to replaceFileSizewith the specific size of the file you want it to be.

Remember that this number is in bytes.
We have successfully created a dummy text file of our preferred size.
it’s crucial that you replaceEnterTextwith the real data that you wish to put into the dummy file.
Remember that this text defines the initial size of the file which is very critical for further steps.
Since you will be entering text, theFileTypeneeds to be .txt, .docx, etc.
You now need to check size your file that has been created.
Putting real data in dummy file creates a text file of 28 bytes only.
This will vary based on the length of the content you put in the file.
For that, we shall be using the command below.
Remember to end the dummy file if you opened it previously.
The first thing to change in the command above is theFilePath,FileName, and theFileTypein 2 places.
Secondly, you should probably replaceMultiplewith an integer to double the size of the file with each loop.
For example, putting2in place ofMultiplewould increase the file size to 128 bytes.
However, putting3would increase it to 224 bytes.
As you’re free to see, increasing a single integer doubles the size of the file.
it’s possible for you to use this as well to create empty dummy test files of any size.
Developers often inquire about where they can get dummy test files to check their programs and applications.
This eliminates the hassle of you looking around and creating them yourself in a few easy steps.
0
Get weekly insights, tips and exclusive content delivered straight to your inbox.
Talk to us straight and get your questions answered right away
source: www.itechtics.com