Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Copy 1 file to many in the same folder

(0) ShareShare
ReportReport
Posted on by 5

Hi there,

I am using the desktop application and I a just started figuring out and testing how I could integrate this in our company.
One of the automated flows our Marketing division needs is to copy 1 picture to many copies in the same folder. Preferably with a possibility to choose the number of copies through a message box.

The copy-names are less important because afterwords they will be automatically renamed in another application.

 

Example
So we have 1 image in 1 folder:
- PR23.jpg in Folder (Fex. C:\Temp Images)

 

In the same folder (C:\Temp Images) I would like to generate this:
- PR23.jpg
- PR23_1.jpg
- PR23_2.jpg
- PR23_3.jpg
- PR23_4.jpg
- PR23_5.jpg
- ...and so on depending on the number of copies needed (previously inserted in a message box).

 

I have tried copying files but there are only 2 possibilities if a file already exists:
1. Do nothing
2. Overwrite

 

Is this even possible with PAD ?  Can anyone get me in the right direction here ?

 

Your help would be seriously appreciated.

  • DARO Profile Picture
    5 on at
    Re: Copy 1 file to many in the same folder

    Hello Pat,

     

    Thanks to your idea of creating an array of random numbers and (mostly) by trial and error(s) I managed to make it work.  Looping by the number of times inserted in a message box it works just great.

     

    Have a nice day,

    David

  • Verified answer
    mahoneypat Profile Picture
    1,720 on at
    Re: Copy 1 file to many in the same folder

    I haven't tried this in PAD, but in a Cloud Flow this could be done by making an array of numbers and then iterating over that array with a Create File action in each iteration that incorporated the current array value in the name.  I assume same would be possible in PAD.

    Regards,

    Pat

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492