Description: |
The function template can be used as starting point for a new function. Complete the template into a useful function like this:
- Rename the function
- Add proper description for the function and its arguments
- Fill in the function body
- Return desired values
|
Script: |
Download: BatchFunctionTmpl.bat
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.
|
:myFunctionName -- function description here
:: -- %~1: argument description here
SETLOCAL
REM.--function body here
set LocalVar1=...
set LocalVar2=...
(ENDLOCAL & REM -- RETURN VALUES
IF "%~1" NEQ "" SET %~1=%LocalVar1%
IF "%~2" NEQ "" SET %~2=%LocalVar2%
)
GOTO:EOF
|
|