06-03-2015, 12:25 PM
(This post was last modified: 06-03-2015, 10:52 PM by SuperFlomm.)
(06-03-2015, 02:18 AM)puggsoy Wrote:Code:Get-ChildItem "C:\MyFiles" -Filter *.XA | `
Foreach-Object{
$bytes = [System.IO.File]::ReadAllBytes($_.FullName);
$bytes[2] = 0x4A;
[System.IO.File]::WriteAllBytes("C:\MyFiles\" + $_.BaseName + ".XA", $bytes);
}
Thank you! This works beautifully. Good Job.
A small bug though: the .txt in the first line has to be .XA