web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Copy 1 file to many in...
Power Automate
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.

Categories:
  • Verified answer
    mahoneypat Profile Picture
    1,720 on at

    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

  • DARO Profile Picture
    5 on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard