Page 1 of 1

Duplicate files inside a folder Job by a certain value

Posted: Mon Sep 29, 2025 5:44 pm
by NEOSA
Hi All ;-)

We would like to have opinions about a flow to setup with Switch.

Need to know if using Enfocus Switch we can duplicate files, to get the right numbers of files expected.

Files are incoming onto Enfocus Switch and are grouped in a JobFolder, files must be driven later by a certain amount.

If a batch containing "N" files are present, we must have "M" elements (inside the JobFolder) for processing later in Switch.

Let me explain : - 52 files are processed / received, but we need 56 files.

At that time, files are manually duplicated (let's say the last one is duplicated to get 56 files).

How we can arrange with Enfocus Switch to have this behaviour ? The amount of files needed is stored in a Database.

To resume :

Step 1: Determine how many files came in (N).
Step 2: Query database to know how many files are required (M). (easy to do)
Step 3: If N < M, duplicate one or more of the incoming files until the total matches M.

Available Enfocus Module are/will be (Windows based) :

- MetaData
- Scripting
- DataBase

Thanks for sharing ;-)

Re: Duplicate files inside a folder Job by a certain value

Posted: Tue Sep 30, 2025 9:59 am
by tdeschampsBluewest
Hi Stephane,

You've already laid out the correct approach:
Step 1: Determine how many files came in (N).
Step 2: Query database to know how many files are required (M). (easy to do)
Step 3: If N < M, duplicate one or more of the incoming files until the total matches M.

This is all very straightforward, Switch can already handles the job counting and calculations, and for the duplication step, there's even an app on the Appstore called "Duplicate" that does exactly what’s needed.

I'm not sure what’s blocking you here?

Re: Duplicate files inside a folder Job by a certain value

Posted: Tue Sep 30, 2025 4:17 pm
by NEOSA
Hi Thomas,

I was thinking of Duplicate also, but the App acts on job (not files inside a Folder). May be I missed a behaviour with this App, I will go deeper to find if possible. I asked @SignificantAutomation also for their feedback.

PS : files inside each folder are differents, only the last one is duplicated N times to have the right amout of files.

Thanks for your reply !

Re: Duplicate files inside a folder Job by a certain value

Posted: Tue Sep 30, 2025 5:05 pm
by tdeschampsBluewest
NEOSA wrote: Tue Sep 30, 2025 4:17 pm Hi Thomas,

I was thinking of Duplicate also, but the App acts on job (not files inside a Folder). May be I missed a behaviour with this App, I will go deeper to find if possible. I asked @SignificantAutomation also for their feedback.

PS : files inside each folder are differents, only the last one is duplicated N times to have the right amout of files.

Thanks for your reply !
The app only act on job, but you can still ungroup the job, then re-assemble it?