Set-XboxFileSize.ps1
function Set-XboxFileSize { param( [String]$FileName, [Uint32]$FileOffset, [Switch]$OpenExisting, [Switch]$DoNotCreateNew, [Switch]$CreateAlways ) process { $value = 0 $Result = $xbdm::DmSetFileSize($FileName, $FileOffset, 0) if ($Result -lt 0) { Write-Error $xbdm::DmTranslateError($Result) } } } |