Rename and relocate the eReport.pdf with a command

Build your list of AccuZIP6 commands by requesting commands and sharing commands with other users

Moderators: Chrissy, Steve, Terry, Donna, Dave, Eric, MartyH, Kristen, Geoff, Vince

Post Reply
User avatar
Dave
Site Admin
Posts: 620
Joined: Wed Sep 20, 2006 3:20 pm

Rename and relocate the eReport.pdf with a command

Post by Dave » Thu Mar 19, 2009 12:18 pm

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

Code: Select all

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

The command above will copy the file to the new location leaving it in both locations. The command below will move the PDF and delete from the original folder.

Code: Select all

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

Post Reply