rem The function template can be used as starting point for a new function. rem Complete the template into a useful function like this: rem Rename the function rem Add proper description for the function and its arguments rem Fill in the function body rem Return desired values :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