- Jun
- 790
- 7
Why doesn't MakeDir1 in the Test.btm file below work? It works in build 41.
C:\Junk>ver /r
TCC 11.00.48 Windows Vista [Version 6.0.6002]
TCC Build 48 Windows Vista Build 6002 Service Pack 2
Registered to davidmarcus - 1 System License
C:\Junk>type Test.btm
*setlocal
function MakeDir1=`iff not isdir "%1" then %+ mkdir /n /s "%1" %+ endiff %+ echo done1`
function MakeDir2=`echo start2 %+ iff not isdir "%1" then %+ mkdir /n /s "%1" %+ endiff %+ echo done2`
echo MakeDir1
%@MakeDir1[C:\Doc]
echo MakeDir2
%@MakeDir2[C:\Doc]
C:\Junk>Test.btm
MakeDir1
MakeDir2
start2
done2
C:\Junk>
Here it is with "echo on" in the btm:
C:\Junk>Test.btm
function MakeDir1=`iff not isdir "%1" then %+ mkdir /n /s "%1" %+ endiff %+ echo done1`
function MakeDir2=`echo start2 %+ iff not isdir "%1" then %+ mkdir /n /s "%1" %+ endiff %+ echo done2`
echo MakeDir1
MakeDir1
echo MakeDir2
MakeDir2
echo start2
start2
iff not isdir "C:\Doc" then
echo done2
done2
C:\Junk>
C:\Junk>ver /r
TCC 11.00.48 Windows Vista [Version 6.0.6002]
TCC Build 48 Windows Vista Build 6002 Service Pack 2
Registered to davidmarcus - 1 System License
C:\Junk>type Test.btm
*setlocal
function MakeDir1=`iff not isdir "%1" then %+ mkdir /n /s "%1" %+ endiff %+ echo done1`
function MakeDir2=`echo start2 %+ iff not isdir "%1" then %+ mkdir /n /s "%1" %+ endiff %+ echo done2`
echo MakeDir1
%@MakeDir1[C:\Doc]
echo MakeDir2
%@MakeDir2[C:\Doc]
C:\Junk>Test.btm
MakeDir1
MakeDir2
start2
done2
C:\Junk>
Here it is with "echo on" in the btm:
C:\Junk>Test.btm
function MakeDir1=`iff not isdir "%1" then %+ mkdir /n /s "%1" %+ endiff %+ echo done1`
function MakeDir2=`echo start2 %+ iff not isdir "%1" then %+ mkdir /n /s "%1" %+ endiff %+ echo done2`
echo MakeDir1
MakeDir1
echo MakeDir2
MakeDir2
echo start2
start2
iff not isdir "C:\Doc" then
echo done2
done2
C:\Junk>