Fast and simple binary concatenate files in Powershell

前端 未结 4 1410
耶瑟儿~
耶瑟儿~ 2020-12-05 10:32

What\'s the best way of concatenating binary files using Powershell? I\'d prefer a one-liner that simple to remember and fast to execute.

The best I\'ve come up with

4条回答
  •  温柔的废话
    2020-12-05 10:58

    It's not Powershell, but if you have Powershell you also have the command prompt:

    copy /b 1.bin+2.bin 3.bin
    

    As Keith Hill pointed out, if you really need to run it from inside Powershell, you can use:

    cmd /c copy /b 1.bin+2.bin 3.bin 
    

提交回复
热议问题