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" |