Tweets from pichat
| Two songs from the year I created my first web sites. http://t.co/8eHrOA9K + http://t.co/AuWb2etI #video #retro About 1 day ago from pichat (Mark Seuffert) |
Tweets from 600infos
| I HAVE NYANED FOR 888.4 SECONDS! http://t.co/JQYOZebv via @nyannyancat About 1 week, 5 days ago from 600infos (Wolf) |
Trace: » C4 (de) » pichat.ini » Development-Area » Adminwolf » Chat Clients » DOS Function Template
You are here: Pichat Wiki (en) » Snippets » DOS Function Template
DOS Function Template
Source: http://www.dostips.com/DtCodeCmdLib.php#Batch.FunctionTemplate
A function template with all features of a true DOS function
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
- function.bat
: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 rem or EXIT /b