- Sep
- 134
- 1
include %PATH%
T1.BTM
T2.BTM
T1.BTM
Code:
Echo Test for Setlocal/EndLocal
:Set Directory-List
Set dirlist=E:\Projekte,E:\Daten\Excel
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Echo %0 : dirlist before: %dirlist%
Call T2.btm
Echo %0 : dirlist after: %dirlist%
Echo %0 : tempVar after Endlocal:%tempVar%
Pause
Code:
SetLocal
Set tempVar=Hello !!
Echo %0 : tempVar:%tempVar%
Echo %0 : Environment before ENDLOCAL
Set
EndLocal tempVar
Echo %0 : tempVar after ENDLOCAL:%tempVar%
:
Echo %@REPEAT[*,%@DEC[%_COLUMNS]]
:
Echo %0 : Environment after ENDLOCAL
Set
Echo %@REPEAT[=,%@DEC[%_COLUMNS]]