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

后端 未结 6 1110
孤街浪徒
孤街浪徒 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:12

    I would point out that the "Testing 1.2.3..." and "Press any key to continue . . ." lines indicate that execution has successfully gone to the :dozip label and then successfully returned to the caller.

    Is the "7za" executable actually a batch file? If I modify my test script to have the helper be a batch file, I get the same error. The fix is to do 'call %zip% %1'

提交回复
热议问题