Am trying to write a batch script to automatically read the PDFs using PDF names in a folder and generate 3 input files from them.
The PDF file names in the folders would in below formats :
1-2345-600B FLAT 3MM MK7 MINE.pdf
7-8910-100C FLAT 3MM MK7 MINE.pdf
I would want to create one of the input files as this format:
Part ID|Rev ID|Part Name|Dataset|datasetname|type|ref
Example:
1-2345-600|B|FLAT 3MM MK7 MINE|/Foldername/PDF/1-2345-600B FLAT 3MM MK7 MINE.pdf|1-2345-600B FLAT 3MM MK7 MINE|PDF|PDF_Reference
7-8910-100|C|FLAT 3MM MK7 MINE|/Foldername/PDF/7-8910-100C FLAT 3MM MK7 MINE.pdf|7-8910-100C FLAT 3MM MK7 MINE.pdf|PDF|PDF_Reference
Here, I was thinking to get the PDF file names seperately in a text file and then parse it to output in above format in another batch file. But, when see that it might be difficult considering the complexities in creating a line with above different parsing options from the PDF file name. Please help in a simpler way of coding this. Am new to the batch file coding world.