Hi,
Well, I couldn't do it in a "for" loop, so, now I'm trying it in a batch file using "do." Here's my script.
L:
cd pdf\single\misc
do ehsfile in "::[A-z]{1}[0-9]{7}.pdf"
copy %ehsfile L:\pdf\single\misc\ehs-%ehsfile
enddo
c:
And, here's what I'm getting.
copy L:\pdf\single\misc\a1203001.pdf ehs-L:\pdf\single\misc\a1203001.pdf
What's up with this? I obviously don't want the full path prefixed with the "ehs-," only the filename itself. I tried "copy %ehsfile ehs-%ehsfile," too, but, I got the same thing.
Can anyone help?
Thanks,
Peter
Well, I couldn't do it in a "for" loop, so, now I'm trying it in a batch file using "do." Here's my script.
L:
cd pdf\single\misc
do ehsfile in "::[A-z]{1}[0-9]{7}.pdf"
copy %ehsfile L:\pdf\single\misc\ehs-%ehsfile
enddo
c:
And, here's what I'm getting.
copy L:\pdf\single\misc\a1203001.pdf ehs-L:\pdf\single\misc\a1203001.pdf
What's up with this? I obviously don't want the full path prefixed with the "ehs-," only the filename itself. I tried "copy %ehsfile ehs-%ehsfile," too, but, I got the same thing.
Can anyone help?
Thanks,
Peter