In DOS you write a function by surrounding a group of command by a label and a GOTO:EOF
command. A single batch file can contain multiple functions defined like this. The label becomes
the function name.
:myDosFunc - here starts my function identified by it`s label echo. here the myDosFunc function is executing a group of commands echo. it could do a lot of things GOTO:EOF