cancel
Showing results for 
Search instead for 
Did you mean: 
mosaic5
New Member
New Member

Rename combined files

Hello,

I have a workflow that collects more than a dozen types of letter documents (all with different file names) and batches and joins them into a single PDF output. These PDF files are then sent to a specified folder. I'd like to be able to change the single PDF file name to a static and generic output name and then concatenate the timestamp after that. Is this possible? Please send any suggestions. Thank you.

0 Kudos
6 Replies
StefanT-Xerox
FreeFlow User

Re: Rename combined files

You could save the file using for instance:

some_name_$FFtimeStamp$

This will give you date and time down to milliseconds.

$FFtimeStamp$ can also be formatted. For instance:

some_name_$FFtimeStamp.Format(false,true,-,numpad,numpad,false, true)$

will give you the name:

some_name_02-24-2021 09-59-07.pdf

Please see Process Variable Options in the Help Guide.

 

0 Kudos
mosaic5
New Member
New Member

Re: Rename combined files

Excellent. Thank you so much Stefan. Obviously, I've been over-thinking this. Appreciate the help.

0 Kudos
mosaic5
New Member
New Member

Re: Rename combined files

According to the help guide 'timeStamp' is an unsupported variable for support variable operations. It doesn't appear that any manipulations I make (format, substring, etc.) changes the timeStamp variable. I'm wondering if there is a way to just add the current day, but not the time in the file name?

0 Kudos
StefanT-Xerox
FreeFlow User

Re: Rename combined files

To exclude the time you can paste this line into a text file and save it to a batch file (.bat):

copy %1 "C:\Temp\filename_%date%.pdf"

Replace your Save node in the workflow with an External Process where you use the batch file.

0 Kudos
DavidU54339-XRX
FreeFlow Production Workflow Moderator
FreeFlow Production Workflow Moderator

Re: Rename combined files

I am using FFCore 6.0.2. When I define within the Save node the filename to be $FFwfJob.jobName$$FFtimeStamp.Format(false,true,-,numpad,numpad, false, false).substring(0,5)$, I obtain the filename (for job named "atlanta") of "atlanta02-26 .pdf".

0 Kudos
mosaic5
New Member
New Member

Re: Rename combined files

This might be what the problem is. We'll need to update to 6.0.2. Thanks so much.

0 Kudos