q;Find files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I need to find all the *.xls files in current and sub folder with paths. How
can I do this in a batch file?
 
This will find all .xls files on C:

Type: cd\ and hit enter.

Then type: dir /s *.xls and hit enter.

Or type:

dir /s *.xls >"%userprofile%\desktop\dirXLS.txt"

and hit enter.
"%userprofile%\desktop\dirXLS.txt" will send dirXLS.txt to the logged on
user's desktop.


For batch file...

cd\
dir /s *.xls

Or...

cd\
dir /s *.xls >"%userprofile%\desktop\dirXLS.txt"

There are many other ways. Maybe someone else will post some.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Back
Top