Create a list of files

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
xhai
Posts: 39
Joined: 13 Jun 2013 09:33

Create a list of files

#1 Post by xhai » 13 Jun 2014 03:46

Hi guys I have a 500 pdf files.. My problem is I want to create a list of all PDF files in the same directory and store it as a Excel document or txt document using a batch program for quick process .. In my folder there are folders,excel document,word document and pdf. I only want the pdf files.

Ex.

Dostips.pdf
google.pdf
yahoo.pdf
mozilla.pdf
etc.

save as in Excel document or txt document


Thanks you,
Last edited by xhai on 17 Jun 2014 09:06, edited 2 times in total.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Help code Copy files

#2 Post by Squashman » 17 Jun 2014 10:16

Code: Select all

dir /a-d /b *.pdf>Pdflist.txt

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Create a list of files

#3 Post by foxidrive » 17 Jun 2014 11:06

Some posts were pruned as the question changed, and they became irrelevant.

xhai
Posts: 39
Joined: 13 Jun 2013 09:33

Re: Help code Copy files

#4 Post by xhai » 18 Jun 2014 03:35

Squashman wrote:

Code: Select all

dir /a-d /b *.pdf>Pdflist.txt


Thank you Squashman... Problem Solved

Post Reply