Use the Fsutil command to create a specific sized file in Windows 10.
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 specialist tool of lineς orders, called fsutil. This tool targets advanced users and system administrators. Performs tasks related to FAT and NTFS file systems, such as mapping, managing sporadic files, or removing a volume. If used without parameters, Fsutil displays a list of the individual supported commands. The tool is available in Windows since the Windows XP era.
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 functionalin fsutil.
One of the parameters of fsutil is the "file". Contains a list of sub - commands that can be used to find a file with name χρήστη (εάν έχουν ενεργοποιηθεί τα Disk Quotas), για την εύρεση επιλεγμένου εύρους αρχείου, για τον ορισμό ενός σύντομου ονόματος αρχείου, για μηδενικά data 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:
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.
