This lists all the files (and only the files) in the current directory:
for /r %i in (*) do echo %i
Also if you run that command in a batch file you need to double the % signs.
for /r %%i in (*) do echo %%i
(thanks @agnul)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…