DO ignores switch /D ?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 31, 2008
376
2
#1
According to the manual, DO /D"path" /S * should iterate fileset in "path". Instead it seems to ignore the /D switch and always start iterating in the current directory. Is this a bug or have I missed something?
Versions TCC 9.02.152 - WinXP Pro SP3
PHP:
REM help file: DO varname IN [range...] /D"directory" [/I:"text" /S[n] /A:[[-|+]rhsadecijopt] fileset
pushd C:\ & rem debug
do i in /D"%TEMP%" /S /A:D *
  echo %i
popd & rem debug
quit & rem debug
enddo
 

rconn

Administrator
Staff member
May 14, 2008
10,100
85
#2
Stefano Piccardi wrote:

> According to the manual, DO /D"path" /S * should iterate fileset in "path". Instead it seems to ignore the /D switch and always start iterating in the current directory. Is this a bug or have I missed something?
Already fixed in v10; v9 will be updated after v10 is released.

Rex Conn
JP Software