实现类似Linux下的dd命令:
$tempFile = "C:\test1.txt"$fs = New-Object System.IO.FileStream($tempFile,[System.IO.FileMode]::OpenOrCreate)$fs.Seek(2GB,[System.IO.SeekOrigin]::Begin)$fs.WriteByte(0)$fs.Close()
本文共 248 字,大约阅读时间需要 1 分钟。
实现类似Linux下的dd命令:
$tempFile = "C:\test1.txt"$fs = New-Object System.IO.FileStream($tempFile,[System.IO.FileMode]::OpenOrCreate)$fs.Seek(2GB,[System.IO.SeekOrigin]::Begin)$fs.WriteByte(0)$fs.Close()
转载于:https://www.cnblogs.com/IvanChen/p/6794990.html