I\'m having a problem with a Windows batch file and labels. I keep getting this error:
The system cannot find the batch label
One possibility, although it seems unlikely, is that command extensions aren't enabled, or up-to-date, and this is interfering with call/goto/label behaviour.
Try:
echo [%cmdextversion%]
and if it's less than [2]
(or empty -- []
) then check to see if cmd.exe
is being invoked with /e:off
, or just run
cmd /e:on
in the console window where you will run this batch file.