Not recognized command everytime in the first line of a code

故事扮演 提交于 2020-01-15 07:24:50

问题


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

Like so:

@ECHO OFF

I get this output:

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

´╗┐@ECHO is not a command

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


回答1:


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.



来源:https://stackoverflow.com/questions/28836113/not-recognized-command-everytime-in-the-first-line-of-a-code

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