As the title.
Supplementary: Generally, GOTO can only go to the label of the current BAT, but sometimes it is inconvenient.
Supplementary: Generally, GOTO can only go to the label of the current BAT, but sometimes it is inconvenient.
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
...
:: Call - type call to itself
call %0 : labelname
...
:: Goto - type call to itself
%0 : lablename
...
:: Call - type call to other Bat
call bat_name : labelname
...
:: Goto - type call to other Bat
bat_name : lablename
...@echo off
if "%1"==":" goto %2
...
:labelname
...
goto end
...
:end