Created
November 6, 2012 12:42
-
-
Save opavlyshak/4024401 to your computer and use it in GitHub Desktop.
Generate file of arbitrary size in PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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