While running a batch file in Windows XP I have found randomly occurring error message:
The system cannot find the batch label specified name_of_label
Of course label existed. What causes this error?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually, you need 2 conditions for this to happen:
See. The system cannot find the batch label specified (by and Batch-as-batch-can!
David A. Gray mentions in the comments seeing (on Windows 10) what Marshal‘s answer showed in 2014 (presumably on Windows 7 or 8): a script/batch program (
.bator.cmd) executed withoutCALLwould trigger an eol conversion.Feb. 2020, kinar adds in the comments:
See jeb‘s answer for more: it was a case of an undefined label.
Note: in a Git repository, I would recommend a
.gitattributesfile with the directive:If you change it afterward, you need, with Git 2.16+ (Q1 2018):