批处理文件运行时 cmd 中出现奇怪的输出

2023-12-01

我在批处理文件中有该脚本:

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: enter image description here

我不知道 cd 命令之前的奇怪符号从何而来。

有任何想法吗?


批处理文件保存为 utf-8 BOM 前缀。你所看到的cdprefix 是字节顺序标记。

将文件另存为 ANSI 或 utf-8 without BOM 以使其正常工作。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

批处理文件运行时 cmd 中出现奇怪的输出 的相关文章

随机推荐