Suppose we write some custom code for uploading/downloading files. Now we want to test the size limitation of a file for Uploading/downloading the file. So for achieving this we look a large file here and there in our system for testing.
Here i am demonstrating that how to create a large file for testing in such scenario on the fly by simply putting a command in command prompt.
- Open command prompt as an administrator.
- Write the command without quotes “fsutil file createnew C:\testfile.doc 1024000” and the simply press enter.
Now you have a 1 mb testfile in your c drive.
You can give any valid location, name, extension and size of the file to create.
Happy tricking 🙂