I've made some additions to the same fsutil
method as mentioned in the chosen answer.
This is to create files of many different extensions and/or of various sizes.
set file_list=avi bmp doc docm docx eps gif jpeg jpg key m4v mov mp4 mpg msg nsf odt pdf png pps ppsx ppt pptx rar rtf tif tiff txt wmv xls xlsb xlsm xlsx xps zip 7z
set file_size= 1
for %%f in (%file_list%) do (
fsutil file createnew valid_%%f.%%f %file_size%
) > xxlogs.txt
The code can be cloned from https://github.com/iamakidilam/bulkFileCreater.git