- Aug
- 295
- 1
different PC Has something changed with tpipe
: tcc v24, v25 works as expected, fails under v26 v27
set >c:\env_def_read
setlocal
unset /q *
: # Case Specific environments
set def_env=ComSpec SystemRoot path Temp TMP
do r=0 to %@dec[%@words[%def_env]]
tpipe /input=c:\env_def_read /output=c:\def_env.txt /outputappend=1 /grep=6,0,0,1,0,0,0,0,%@word[%r,,%def_env]
enddo
unset /q r def_env
set /r def_env.txt
endlocal
del /q def_env.txt env_def_read
: tcc v24, v25 works as expected, fails under v26 v27
set >c:\env_def_read
setlocal
unset /q *
: # Case Specific environments
set def_env=ComSpec SystemRoot path Temp TMP
do r=0 to %@dec[%@words[%def_env]]
tpipe /input=c:\env_def_read /output=c:\def_env.txt /outputappend=1 /grep=6,0,0,1,0,0,0,0,%@word[%r,,%def_env]
enddo
unset /q r def_env
set /r def_env.txt
endlocal
del /q def_env.txt env_def_read