Duplicate files inside a folder Job by a certain value

Post Reply
NEOSA
Member
Posts: 52
Joined: Thu Mar 10, 2016 6:31 pm

Duplicate files inside a folder Job by a certain value

Post 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 ;-)
User avatar
tdeschampsBluewest
Member
Posts: 147
Joined: Tue Jun 01, 2021 11:57 am

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

Post 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?
Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
NEOSA
Member
Posts: 52
Joined: Thu Mar 10, 2016 6:31 pm

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

Post 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 !
User avatar
tdeschampsBluewest
Member
Posts: 147
Joined: Tue Jun 01, 2021 11:57 am

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

Post 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?
Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
Post Reply