Using PascalScript to Append Subfolder to Filenames
Posted: Fri Nov 21, 2025 10:41 pm
Hi all,
I am fairly new to Syncovery and have a question that I believe pertains to the Job-related settings > PascalScript prompt.
I would like to append the subfolder name to the files contained within them before moving from left to right. I first tried using a Filename inclusion mask but this did not seem to work. I'm now attempting to use PascalScript to accomplish this, specifically the OnReplaceFilenameLeftToRight function. I've copied the function sample script which appends '-draft' to the filename, but how would I go about making this a dynamic variable that points to the subfolder name?
Thank you in advance.
Marissa
I am fairly new to Syncovery and have a question that I believe pertains to the Job-related settings > PascalScript prompt.
I would like to append the subfolder name to the files contained within them before moving from left to right. I first tried using a Filename inclusion mask but this did not seem to work. I'm now attempting to use PascalScript to accomplish this, specifically the OnReplaceFilenameLeftToRight function. I've copied the function sample script which appends '-draft' to the filename, but how would I go about making this a dynamic variable that points to the subfolder name?
Thank you in advance.
Marissa