问题
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