Description: | The SETLOCAL causes the command processor to backup all environment variables. The variables
can be restored by calling ENDLOCAL. Changes made im between are local to the current batch.
ENDLOCAL is automatically being called when the end of the batch file is reached, i.e. by
calling GOTO:EOF.
Localizing variables with SETLOCAL allows using variable names within a function freely without worrying about name conflicts with variables used outside the function. |
||
Script: | Download: BatchTutoFunc4.bat
|
||
Script Output: |
|