Skip to content

Instantly share code, notes, and snippets.

@jtbrough
Last active August 29, 2015 14:08
Show Gist options
  • Save jtbrough/4851afced1d5d7e1429a to your computer and use it in GitHub Desktop.
Save jtbrough/4851afced1d5d7e1429a to your computer and use it in GitHub Desktop.
@echo off
rem Jordan Brough 11/04/2014 6:14:19 AM
rem use fsutil to create a sequence of test files at specificed sizes (in bytes)
rem switch %% to % when running single lines from the CMD prompt
rem create 100 1MB files (total 100MB)
for /L %%i in (1,1,100) do fsutil file createnew 1MB-%%i.tmp 1048576
rem create 100 10MB files (total ~ 1GB)
for /L %%i in (1,1,100) do fsutil file createnew 10MB-%%i.tmp 10485760
rem create 100 100MB files (total ~ 10GB)
for /L %%i in (1,1,100) do fsutil file createnew 100MB-%%i.tmp 104857600
rem create 10 1GB files (total 10GB)
for /L %%i in (1,1,100) do fsutil file createnew 1GB-%%i.tmp 1073741824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment