Tuesday, December 17, 2013

How to Create a Large file for Upload Test

Problem-
While testing one of the modules in my Project i required a file of around 50 MB to test if the upload works fine.
The file with extensions needed were  .jpg, .bmp, .xls, xlsx, .doc,, .docx, .txt

Solution
in the command line type the following
fsutil file createnew <filename> <length>
e.g fsutil file createnew largefile 100000
The following file will be created
File C:\largefile is created