Fsutil: Create a specific file size in Windows 10

Use the Fsutil command to create a file of a certain size in 10.

fsuti

Sometimes you need to create a file of a certain size for test purposes. Of course you can create it with a third party application, such as WinRAR, by compressing large volumes of files into desired volume rar or zip files, but you know that Windows 10 offers you the ready solution through the Fsutil command;

Windows comes with a special command-line tool, called fsutil. This tool is aimed at advanced users and system administrators. Performs systems related tasks FAT and NTFS, such as managing mount points, managing sporadic files or removing a volume. If used without parameters, Fsutil displays a list of the individual ones which are supported. The tool has been available on Windows since Windows XP.

You must be logged in as an Administrator or a member of the Administrators group to use Fsutil. You may need to enable it WSL mode to have full in fsutil.

One of fsutil's parameters is “file”. Contains a list of subcommands that can be used to find a file with a username (if Disk Quotas are enabled), to find a selected range of files, to set a short file name, for nulls in a file, to create a new file, etc.

In our case, we will use the fsutil application to create a specific size file in Windows 10. See how.

Step 1: Open a command line with administrative privileges.
Step 2: Type or copy-paste the following command: fsutil file createnew
Replace the part with the actual file name and the desired file size in BYTES.
The following command will create the iguru.bin file with 4 kilobytes size under c: \.

fsutil file createnew c: \ config.bin 4096

Do not forget to put quotes in your file path if it contains spaces.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).