Strange output in cmd while batch file is running

ぐ巨炮叔叔 提交于 2019-12-02 12:00:06

问题


I have that script in batch file:

cd C:\TESTS\front-tests
call git pull
cd C:\TEST\front-tests\AutoApp\bin\debug
start AutoApp.exe

And git pull do not work because I can not change directory. Here is the result image:

I do not know from where do the strange symbols, before cd command, come from.

Any ideas?


回答1:


The batch file is saved as utf-8 BOM prefixed. What you see as the cd prefix is the byte order mark.

Save the file as ANSI or utf-8 without BOM to make it work.



来源:https://stackoverflow.com/questions/25423160/strange-output-in-cmd-while-batch-file-is-running

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!