I
I
Ilya *censored*2016-04-02 17:22:17
cmd/bat
Ilya *censored*, 2016-04-02 17:22:17

How to add BOM to UTF-8 file via BAT?

Good afternoon! I had a need to add a BOM header to a txt file, via bat. I would like to know how this can be implemented approximately.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2016-04-02
@Lupus_Anay

Make the file containing the BOM, for example bom.txt, add like this:
copy /b /y bom.txt+file.txt file1.txt
Then file1.txt can be renamed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question