Windows batch file - The system cannot find the batch label specified

后端 未结 6 1120
孤街浪徒
孤街浪徒 2020-12-10 15:46

The Problem

I\'m having a problem with a Windows batch file and labels. I keep getting this error:

The system cannot find the batch label

6条回答
  •  孤街浪徒
    2020-12-10 16:01

    Looking closely at your hex, it does not actually have all CRLF (0d 0a). Several lines end in LF-only (0a without a preceding 0d).

    Check in your hex editor to make sure every 0a is preceded by 0d (exactly one).

    Or just cut and paste your file into a blank Notepad document and re-save it.

提交回复
热议问题