The following code works like a charm, but I wonder if there is there another (better) way to feed the captured TPIPE string to the rename command?
I know I can use redirection but I'd like to do something like /output=idVariable. However, that doesn't work.
Code:
rem Rename generic PDFs with internal page ID found in the PDF.
do f in p*.pdf
tpipe /input=%f /output=CLIP: /simple=76 /grep=3,0,0,0,0,0,0,0,ID
ren /Q %f %@regexsub[1,(\d+),%@clip[0]].pdf
enddo
I know I can use redirection but I'd like to do something like /output=idVariable. However, that doesn't work.