cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.11 how to pick up only one file at a time in file adapter

Former Member
0 Kudos

Hi

Is there a smart way of only picking up one file at a time (for every poll) in a sender file adapter?

E.g. There are 100 files in the source folder but I only want to pick up 1 of the files every time I poll the source folder in my sender file adapter.

BR

Mikael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mikael,

Apart from using OS script, you can try this also..

Use the Msecs to Wait Before Modification Check in the sender file adapter,under Advanced Mode

and set it to 30 for example.

WIth Regards,

Pinangshuk.

Answers (1)

Answers (1)

Former Member
0 Kudos

you can use the OS Commands option in the file adapter. create another folder and write a script which will write the source file in the source folder only if there is no file in the source folder (archive mode)

Former Member
0 Kudos

Thanks

I did something like this:

FOR /F %%I IN ('DIR
srv145.??????????\reload\files\*.* /B /O:-D') DO (

echo %%I

move
srv145.????????????\reload\files\%%I
srv145.??????????\DMI\out\nocontentconversion

exit /B 0

)