Have a script S1.bat and S2.bat and want to call a few functions located in S2.bat within S1.bat. How to do that with the DOS shell commands? For example,
:GetSum A B C
if "%3"=="" (@echo S2.bat A B C ) & (goto :eof)
set /a C=A+B
REM want to call :GetSum and how???
call ???GetSum 5 6 C