Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Batch, The system cannot find the batch label specified

Writer Andrew Mclaughlin

I have a batch script with a function called :DispLogo in it, however, when I call it states The system cannot find the batch label specified: DispLogo. It is 100% there. I've tried renaming it with no success. I think it has to do with line breaks since I enabled viewing all characters in notepad++ and this is what I see in most of my files:

normal

Each new line has CR and LF. However, on the file in question, I see this:

enter image description here

As you can see, this file only has the LF. How can I fix this?

7

1 Answer

replace \n with \r\n in your script to fix the LF

  • \n is the line ending (LF)
  • \r is carriage return (CR)
  • \r\n = CRLF
0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy