explorer

  • Thread starter Thread starter Guest
  • Start date Start date
[src]s message :
How do I print the contents of a folder, that is, a list of all the contained
files?

DIR "PATH" /A-D /B > FILEPATH

PATH can contain wildcards( * and ? ). e.g. if you want to list all the .DAT files in
C:\Windows\System32, use:
DIR "C:\Windows\*.dat" /A-D /B > FILEPATH

e.g.

DIR "C:\Windows\*" /A-D /B > "C:\WIndows\All Files List.txt"


Type- DIR /? at command prompt for more info..

Good Luck, Ayush.
 
Back
Top