2 set MYBOOTSTRAPTESTVALUE=0
4 .\testbootstrap 1 -env:MYBOOTSTRAPTESTVALUE=1
7 .\testbootstrap.exe file
10 .\testbootstrap.Exe file
13 .\testbootstrap.bin file
16 .\testbootstrap.Bin file
19 .\testbootstrap 0 -env:INIFILENAME=
22 set MYBOOTSTRAPTESTVALUE=
23 rem simply ignore the file ....
24 .\testbootstrap default -env:INIFILENAME=
27 .\testbootstrap default -env:MYBOOTSTRAPTESTVALUE2=1 -env:INIFILENAME=
33 rem simple macro expansion
35 .\testbootstrap _first_second_third_ -env:FIRST=first -env:SECOND=second -env:THIRD=third -env:MYBOOTSTRAPTESTVALUE=_${FIRST}_${SECOND}_${THIRD}_
39 .\testbootstrap _${FIRST}_${SECOND}_${THIRD}_ -env:FIRST=first -env:SECOND=second -env:THIRD=third -env:MYBOOTSTRAPTESTVALUE=_\$\{FIRST\}_\$\{SECOND\}_\$\{THIRD\}_
43 .\testbootstrap TheKeysValue -env:MYBOOTSTRAPTESTVALUE=${./bootstraptest.ini:TheSection:TheKey}
45 rem ini access with simple macro expansion
47 .\testbootstrap TheKeysValue -env:ININAME=./bootstraptest.ini -env:SECTIONNAME=TheSection -env:KEYNAME=TheKey -env:MYBOOTSTRAPTESTVALUE=${$ININAME:$SECTIONNAME:$KEYNAME}
49 rem ini access with complex macro expansion
51 .\testbootstrap TheKeysValue -env:ININAME=./bootstraptest.ini -env:MYBOOTSTRAPTESTVALUE=${$ININAME:${$ININAME:SecondSection:IndirectSection}:${$ININAME:SecondSection:IndirectKey}}
53 rem test no infinit recursion
55 .\testbootstrap "***RECURSION DETECTED***" -env:MYBOOTSTRAPTESTVALUE=$MYBOOTSTRAPTESTVALUE
59 .\testbootstrap AAABBBCCC000 -env:MYBOOTSTRAPTESTVALUE=\u0041\u0041\u0041\u0042\u0042\u0042\u0043\u0043\u0043\u0030\u0030\u0030
62 @echo bootstrap test finished