Technology and troubleshooting.

Monday, June 6, 2016

How to create test files of any size

This tutorial describes How to create test files of any size in windows.
How to create test files of any size

Overview

Fsutil is typically used by support professionals. Finds a file by security identifier, queries allocated ranges for a file, sets a file's short name, sets a file's valid data length, sets zero data for a file, or creates a new file.

Key Ideas

Fsutil: File system utility.
File: Finds a file by its security identifier, queries allocated ranges for a file, sets a file's short name, sets a file's valid data length, or sets zero data for a file.

Now Do It

The following Syntax can be used to create a test file of any length. 

fsutil file createnew <filename> <filesize in bytes>
 

For example, to create a 20 megabyte test file:

  1. Click on the ‘Start’ button
  2. In the search box type ‘cmd’
  3. Right-click on Command Prompt and choose ‘Run as administrator’
  4. Enter the following command in cmd:
        fsutil file createnew c:\log.txt 20971520
create test files of any size_cmd


      5. The file will be located in the C:\

create test files of any size_log

I hope this information is useful for you. Please forgive any typos or incomplete sentences.
Share:

0 comments:

Post a Comment

Contributors

Popular Posts