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.