dir *.pdf > fileyouwant.txt
If you only want the filenames, you can do that withdir/b *.pdf > fileyouwant.txt
If you also want subdirs,dir/s/b *.pdf > fileyouwant.txt
If you aren't in that directory to start withdir/s/b C:\Path\*.pdf > fileyouwant.txt
http://stackoverflow.com/questions/4515510/command-line-print-file-names-to-output-file
No comments:
Post a Comment