Support 805.461.7300
Sales
Our Technology. Your Success.

Rename and relocate the eReport.pdf with a command

NOTE:
Change the “C:\” to the path of your choice.
Change the name in the last set of quotes to the name that you would like to follow the file name

The command below will copy the file to the new location, leaving it in both locations. 

SET SAFETY OFF
COM_PDFFILEPATHNEW="C:\"
COPY FILE FORCEEXT(DBF(),"")+" EREPORTS.PDF" TO COM_PDFFILEPATHNEW+JUSTFNAME(FORCEEXT(DBF(),""))+" EREPORTS.PDF"

The command below will move the PDF and delete it from the original folder.

SET SAFETY OFF
COM_PDFFILEPATHNEW="C:\"
RENAME FORCEEXT(DBF(),"")+" EREPORTS.PDF" TO COM_PDFFILEPATHNEW+JUSTFNAME(FORCEEXT(DBF(),""))+" EREPORTS.PDF"

« Back to Commands

I just had to tell you how I LOVE the new upgrade.   Man, you talk about making the search and replace task easier!   It's so easy!...Kudos to you guys for making a great product even better.   I'm definitely sold!
P.C., Auburn, AL