You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
343 B

function StripFile($Filename)
{
$Content = Get-Content "${Filename}.prn"
# $Content = $Content -replace "\0", ""
# $Content = $Content -replace "\e.", ""
$Content = $Content -replace "\x1A", ""
Set-Content "${Filename}.txt" $Content[0..($Content.count - 3)]
}
StripFile("part1")
StripFile("part2")
StripFile("part3")
return