I’m making a bat game, and for the location of the player im using x.y.c (C being the compass the player is facing) Note the use of “.” and not “,”
Why is it that batch doesn’t like the use of “,”?
What I mean by this is if you say goto 0,0 it will crash because it cant find :0,0
However if you use goto 0.0 it can find :0.0
As GolezTrol said,
,isn’t an allowed character for a label.But it’s even more complex, you can view it from two points.
First from the label-view:
The characters of a label will never be expanded, the name of the label stops at one of the characters
:+&|<>, and you can’t esacpe them neither with quotes nor with carets, as quotes and carets are valid label characters too.A valid labels can prepended by ANY character (but only one) followed by many out of
SPACE,;=TABThe other view is from the call or goto command:
There are these characters that stops the label
<space>,<TAB>and:,;=+even when the label is in quotes likeBut the output will be
:"myLabel+ignoredeven if the name of the searched label will be only"myLabel.(<>can also stop the label but not in quotes, they seem to work quite different.With these two rules it’s possible to understand how this works.