In a batch file you can have
Goto Stackoverflow
and you can have
(Goto Stackoverflow)
Whats the diffrence between these?
They are being used like this
:Stackoverflow
set /a x=%x% + 1
goto stackoverflow
:Stackoverflow
set /a x=%x% + 1
(goto stackoverflow)
Parentheses (or brackets) are used in batch files specify a list of commands that should be treated as an entity, like
{ ... }in other languages. Typically they are used with IF or FOR expressions:In your example, there is no difference between
Goto Stackoverflowand(Goto Stackoverflow).