Skip to content

Instantly share code, notes, and snippets.

@koma5
Last active January 3, 2016 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koma5/8521204 to your computer and use it in GitHub Desktop.
Save koma5/8521204 to your computer and use it in GitHub Desktop.
generate 10k 1MB (1048576 bytes) files.
@echo off
title bigFile.bat
set /a x=0
del bigFile
mkdir bigFile
:loopname
fsutil file createnew bigFile\F%x%.tmp 1048576
set /a x=%x%+1
if %x% NEQ 10000 goto loopname
pause
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment