Hi,
I'm trying to use a simple && (AND) sequence. I've tried it in both Windows command line and TC. Here it is:
for %I in (*.pdf) do echo %I >> files.txt && pdfinfo %I >> files.txt
I want to write to a file the name of the PDF file I'm working on. Then, underneath that echoed line in the text file, I want to run a simple PDF utility that I use to interrogate the PDF for page count, etc.
All I'm getting is a text file with the names of the files, but, no PDF information. I know that the "pdfinfo" command is in my path because, as it's running this sequence, I see its nomenclature flying by.
I'm getting the same results with both Windows and TC.
Thanks.
I'm trying to use a simple && (AND) sequence. I've tried it in both Windows command line and TC. Here it is:
for %I in (*.pdf) do echo %I >> files.txt && pdfinfo %I >> files.txt
I want to write to a file the name of the PDF file I'm working on. Then, underneath that echoed line in the text file, I want to run a simple PDF utility that I use to interrogate the PDF for page count, etc.
All I'm getting is a text file with the names of the files, but, no PDF information. I know that the "pdfinfo" command is in my path because, as it's running this sequence, I see its nomenclature flying by.
I'm getting the same results with both Windows and TC.
Thanks.