Create a dummy file

Create a 100Mb blank file in the current directory, for testing purpose

 

$here = Get-Location

$f = new-object System.IO.FileStream $here\BlankFile, Create, ReadWrite
$f.SetLength(100MB)
$f.Close()

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top