Description: |
call:getFunctions ret |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.
|
:getFunctions ret -- returns a comma separated list of all functions
:: -- ret [out] - reference to return variable
:$created 20060101 :$changed 20080219
:$source https://www.dostips.com
SETLOCAL
set ret=
for /f %%a in ('"findstr "^^:[a-z].*--" "%~f0" "') do call set ret=%%ret%%%%a,
( ENDLOCAL & REM RETURN VALUES
IF "%~1" NEQ "" (SET %~1=%ret%) ELSE ECHO.%ret%
)
EXIT /b
|
|