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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Copy 1 file to many in...
Power Automate
Unanswered

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard