テストとかで使う局面はありそうなのでパスをメモしておく。
Creating Huge Dummy Files - Power Tips - PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
$Path = "$env:temp\hugefile.txt"
$Size = 200MB
$stream = New-Object System.IO.FileStream($Path, [System.IO.FileMode]::CreateNew)
$stream.Seek($Size, [System.IO.SeekOrigin]::Begin)
$stream.WriteByte(0)
$Stream.Close()
explorer.exe "/select,$Path"
0 件のコメント:
コメントを投稿