1.

Solve : copying file names without file type?

Answer»

I have a folder FULL of pdfs, and I want to create a spreadsheet with all the pdf names listed. I was able to do this, but the file names all INCLUDE the .pdf extension. How can I copy the names without .pdf?

Thanks!for /f "tokens=1 delims=." %a in ('dir /b *.pdf') do @echo %aI want to save the .txt file as pdflist.txt. After I typed the code you gave me, the pdf names showed up in the DOS window without the pdf extention. How do I get that list into a .txt file?

Thanks again

Add this at the end of the line

>> pfdlist.txtit worked perfect, thanks a lot!Quote from: Boater14 on August 11, 2009, 07:07:08 AM

it worked perfect, thanks a lot!
No problem.


Discussion

No Comment Found