Bulk File Creation in Windows

Bulk File Creation in Windows

Sometimes it can be helpful to automate the creation of many files for testing purposes. Please add additional methods to this topic.

Command Scripting (Batch File) Methods

Create 1000 files approximately 13 byte files using only command scripting language:

    For /L %i in (1,1,1000) do echo > %i

To have the file names be A<number>.tmp instead of just <number>:

    For /L %i in (1,1,1000) do echo > A%i.tmp

To control the file size, use the built in Fsutil tool instead of echoing into a new file:

    For /L %i in (1,1,100000) do fsutil file createnew A%i.tmp 4096

See also http://thebackroomtech.com/2009/01/16/howto-generate-many-files-of-a-particular-size-in-windows/

PowerShell Methods

Add PowerShell methods here.

Vbscript Methods

Add Vbscript methods here.

Third-party / External Tool Methods

Add methods here that use third-party tools or tools that are not included by default in Windows.
Leave a Comment
  • Please add 3 and 6 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • TejasJ edited Revision 2. Comment: tag edit.

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • TejasJ edited Revision 2. Comment: tag edit.

Page 1 of 1 (1 items)