每次在代码的第一行中都无法识别的命令 [英] Not recognized command everytime in the first line of a code

查看:78
本文介绍了每次在代码的第一行中都无法识别的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的BATCH文件有问题... 无论第一行写什么,它都说:[command]不是命令.

I have a problem with my BATCH file... Whatever is written on the first line, it says: [command] is not a command.

像这样:

@ECHO OFF

我得到以下输出:

[C:\ folder(path)]>´╗┐ @ ECHO OFF

[C:\folder (path)]>´╗┐@ECHO OFF

´╗┐ @ ECHO不是命令

´╗┐@ECHO is not a command

即使在清晰的批处理文件中(除@ECHO OFF外,其他操作也一样).请帮忙!

It does the same even in a clear batch file(nothing except @ECHO OFF in it). Please help!

推荐答案

您正在看到文件的BOM(字节顺序标记),可能是utf-8编码的.用编辑器打开,然后以ANSI编码保存文件.

You are seeing the BOM (Byte Order Mark) of the file, probably utf-8 encoded. Open with an editor and save the file with ANSI encoding.

这篇关于每次在代码的第一行中都无法识别的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆