views:

91

answers:

1

Hi,

I have following batch files to list all the excel files in my folder:

for /r %%i In (*.xls) DO echo %%i

However, this will also include all excel files in subfolders of my current folder. How can I prevent that? I only want the files in the folder itself, not the subfolder.

+1  A: 

Pff, silly question, silly answer: just remove the /r

Fortega