I hope I never have to write another Windows .BAT file again in my life, but if I don't jot this stuff down, I will forget it, and then I will.
- Use
:somelabelto define a block of code. - Use
call :somelabelto jump to a defined label, run that block of code to the end, then return. - Use
goto :labelto jump to that label. - Put
:eofat the end of your file.