Skip to content

Instantly share code, notes, and snippets.

@opavlyshak
Created November 6, 2012 12:42
Show Gist options
  • Save opavlyshak/4024401 to your computer and use it in GitHub Desktop.
Save opavlyshak/4024401 to your computer and use it in GitHub Desktop.
Generate file of arbitrary size in PowerShell
$f = New-Object System.IO.FileStream d:\temp\50MB-file.dat, Create, ReadWrite
$f.SetLength(50MB)
$f.Close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment