I had tried to type File.jpg | ncat 192.168.0.2 3333
a file from Windows to Linux but the file was not the same. It was slightly larger and a hex editor showed most bytes were the same, with some changes and insertions scattered throughout.
I tried type C:\Path\File.jpg > C:\PathFile1.jpg
and was surprised to obtain a file roughly twice the size of the original, with 00
inserted between the original file's hex values that mostly remained unaltered, with a few alterations and insertions.
I had executed those commands in Powershell. Then I tried the same commands using the old cmd.exe
command prompt, and they worked!
This behavour is a surprise and I couldn't find any information on it. What's going on with Powershell?