explorer

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

Guest

How do I print the contents of a folder, that is, a list of all the contained
files?
 
[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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top