Monday, October 8, 2012

command line print file names to output file

Not much different than Linux.
dir *.pdf > fileyouwant.txt
If you only want the filenames, you can do that with
dir/b *.pdf > fileyouwant.txt
If you also want subdirs,
dir/s/b *.pdf > fileyouwant.txt
If you aren't in that directory to start with
dir/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