Take care, batch files hate unicode encoding


You may have tried to run batch files without success, although knowing that their syntax is perfect and everything should work without problems.

It happened to me even recently, and I needed some time to recall this crucial detail, without which my batch would remain useless forever…

If you are in trouble running your perfectly written batch file, make sure you have not saved it in unicode encoding.

If you used an editor such as Ultra Edit, able to save by default a file in unicode, open your file in that editor and convert it to ascii. Watch then your bat fly like an eagle!

Leave a comment