tags:

views:

39

answers:

1

How can I append the content of the file a.bin to the file b.bin in Powershell?

A: 

Perhaps somebody has a simpler approach but this works:

[byte[]]$bytes = Get-Content a.bin -Encoding byte
Add-Content b.bin $bytes -Encoding byte
Keith Hill