Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

Avoiding the clipboard

$
0
0
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?

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.

Viewing all articles
Browse latest Browse all 1689

Trending Articles