Create large size file for testing on the fly!


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.

  1. Open command prompt as an administrator.
  2. 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 🙂

 

Advertisements

4 thoughts on “Create large size file for testing on the fly!

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s