How can I write a null ASCII character (nul) to a file with a Windows batch script?

前端 未结 4 788
一整个雨季
一整个雨季 2020-12-31 12:58

I\'m attempting to write an ASCII null character (nul) to a file from a Windows batch script without success. I initially tried using echo like this:

         


        
4条回答
  •  长情又很酷
    2020-12-31 13:14

    Here's an article which describes how to write arbitrary bytes with a batch file (search for h2b.com). This effectively solves the problem of writing any non-printable data using a batch script (including null).

提交回复
热议问题