How can I rename a PDF programmatically?

I want to use the file picker to select the PDF, and then rename it
based on the value in a character field.

Thanks for the reply...

Re: Naming files in VFP by Russell

Russell
Fri Sep 17 17:44:33 CDT 2004

File picker? You mean GetFile? GetFile will return the file name, then you
can do this:

OrigFileName = getfile("PDF", "Select", "Select PDF File")
NewFileName = juststem(OrigFileName) + alltrim(<table.field>) + ".PDF"
Rename (OrigFileName) to (NewFileName)

*OR*

Copy file (OrigFileName) to (NewFileName)

There are some variations on this, of course, depending on your exact needs.

Russell Campbell

<Mattheson> wrote in message
news:7dpmk05mo9knmqr891dqhrrkjkci60a9nn@4ax.com...
> How can I rename a PDF programmatically?
>
> I want to use the file picker to select the PDF, and then rename it
> based on the value in a character field.
>
> Thanks for the reply...
>