R rawood11 Oct 19 0 2008-10-28 #1 rem ----- list subfolders for /r /D j:\taqDAILYNBBO\ %x in (*) ( rem ----- list all files in the subfolder for %x %y in (*) ( echo ticker= %y ) ) This produces an error -- what am I doing wrong?
rem ----- list subfolders for /r /D j:\taqDAILYNBBO\ %x in (*) ( rem ----- list all files in the subfolder for %x %y in (*) ( echo ticker= %y ) ) This produces an error -- what am I doing wrong?
Charles Dye Super Moderator May 5,321 158 Staff member 2008-10-28 #2 rawood11 said: rem ----- list subfolders for /r /D j:\taqDAILYNBBO\ %x in (*) ( rem ----- list all files in the subfolder for %x %y in (*) ( echo ticker= %y ) ) This produces an error -- what am I doing wrong? Click to expand... I don't see how FOR %X %Y can possibly be legal syntax... I think you're trying to do something like this: Code: for /r /d j:\taqDAILYNBBO\ %x in ( * ) for %y in ( %x\* ) echo ticker= %y Which could probably be simplified to: Code: for /r j:\taqDAILYNBBO\ %y in ( * ) echo ticker= %y or even reduced to a DIR or PDIR. What's the object of the game?
rawood11 said: rem ----- list subfolders for /r /D j:\taqDAILYNBBO\ %x in (*) ( rem ----- list all files in the subfolder for %x %y in (*) ( echo ticker= %y ) ) This produces an error -- what am I doing wrong? Click to expand... I don't see how FOR %X %Y can possibly be legal syntax... I think you're trying to do something like this: Code: for /r /d j:\taqDAILYNBBO\ %x in ( * ) for %y in ( %x\* ) echo ticker= %y Which could probably be simplified to: Code: for /r j:\taqDAILYNBBO\ %y in ( * ) echo ticker= %y or even reduced to a DIR or PDIR. What's the object of the game?