Creatfil.exe: Create File


This command-line tool creates an artificial file of any size. This is useful for testing the behavior of tools, applications, and setup programs under conditions of low available memory on a hard disk.

Create File must be run from the command prompt; it cannot be run from the Run command on the Start menu.

Create File Syntax

One Stepcreatfil [path]filename [filesize]

Where:

path
is the path to an existing directory on the hard disk where the file is to be created (default is the root of the current drive).
filename
is the name of the file to create.
filesize
is the size of the file to create, in units of one kilobyte (1024 bytes). This argument is optional. The default is one kilobyte.

Create File Example

c:\>creatfil workfile.dat 100

creates a 100 KB (102,400 byte) file of zeros called Workfile.dat.

Files Required