I am trying to figure out how file1.bat can call file2.bat at a specified label.
I figured I can do it like this:
File1.bat
:config
You could pass the label you want to go to as a parameter
Example scripts
First.bat
@echo off set label=GOHERE call Second.bat %label% pause >nul
Second.bat
@echo off goto %1 echo This line should be skipped :GOHERE echo Jumped here