Skip to content

Instantly share code, notes, and snippets.

@Richienb
Created June 10, 2018 02:05
Show Gist options
  • Save Richienb/0393f04b10ba9c2395cf3dbe911e660d to your computer and use it in GitHub Desktop.
Save Richienb/0393f04b10ba9c2395cf3dbe911e660d to your computer and use it in GitHub Desktop.
Large File Creation Tool In A Batch File

What is this?

This is a simple Batch File tool to easily create files of your desired size. If this tool doesn't seem to work, ensure you are running it in elavated/administrator mode

@echo off
title Large File Creation Tool
cls
echo If this tool doesn't seem to work, ensure you are running it in elavated/administrator mode
echo Press any key to continue
pause>nul
echo.
:start
set /p name=Enter the name or the path of the new file:
set /p size=Enter the file size of the new file in bytes:
echo.
echo Creating file...
fsutil file createnew "%name%" %size%
echo Creation complete
echo.
echo Press any key to create another file
echo Otherwise, close this window
pause>nul
echo.
goto start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment