Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 1ofqUg44bHqNomnyufgUvN
Power Automate - Building Flows
Unanswered

How to move filsed from one folder to another based on the file name

Like (0) ShareShare
ReportReport
Posted on 14 Oct 2022 19:38:08 by 10

Hello,

 

Not sure, whether this has been asked by somebody in the past. I'm fully newbie in Power automate and trying to find a solution to our work.

I have one folder with over 9000 of pdf files and need to move all of them to another folders according to one word( serial number).

 

Example:

File name XYZ January Beta => to be moved to XYZ folder

File name ABC January Beta => to be moved to ABC folder

 

If I have multiple files with same serial number, all of them will be moved to same folder.

etc.

Is there any simple way to do it? 😔

 

I cannot imagine to do it manually, Thanks

Jenny

  • dobracik Profile Picture
    10 on 27 Oct 2022 at 17:07:21
    Re: How to move filsed from one folder to another based on the file name

    Is here aybody who could support?😥

  • dobracik Profile Picture
    10 on 17 Oct 2022 at 12:30:09
    Re: How to move filsed from one folder to another based on the file name

    It would take weeks to move all those files according to the serial number to the specific folders 😞

    Not able to use Powershell as I;m not able to write any command in there.

    is here anybody, who could help, please? 😞

  • lbendlin Profile Picture
    7,873 Super User 2025 Season 1 on 17 Oct 2022 at 12:23:13
    Re: How to move filsed from one folder to another based on the file name

    The point here is that you don't really need Power Automate. You could do it with a couple batch commands, with PowerShell, or even manually. Whatever you feel comfortable with.

  • dobracik Profile Picture
    10 on 17 Oct 2022 at 12:05:35
    Re: How to move filsed from one folder to another based on the file name

    Im not able to write powershell script, Im newbie on Power automate completely😔

  • lbendlin Profile Picture
    7,873 Super User 2025 Season 1 on 17 Oct 2022 at 11:51:48
    Re: How to move filsed from one folder to another based on the file name

    Once you have synced the folder down you can treat is as if it were a local folder. Run your Powershell scripts, and it will then sync the changes back up.

  • dobracik Profile Picture
    10 on 17 Oct 2022 at 11:28:41
    Re: How to move filsed from one folder to another based on the file name

    Ah, did now that but I do not know,on how to do that. I have synced that folder in my driver,but that's it 😔 do you on how to do that? Its on my work PC

  • lbendlin Profile Picture
    7,873 Super User 2025 Season 1 on 17 Oct 2022 at 11:25:20
    Re: How to move filsed from one folder to another based on the file name

    You could sync that Onedrive folder down to a local drive and access that via PowerShell. It would require some network traffic.

  • dobracik Profile Picture
    10 on 17 Oct 2022 at 07:03:14
    Re: How to move filsed from one folder to another based on the file name

    Hi, quite not sure, but we uploaded those files to One Drive cloud and now we have to split all of them. 

  • lbendlin Profile Picture
    7,873 Super User 2025 Season 1 on 16 Oct 2022 at 23:37:54
    Re: How to move filsed from one folder to another based on the file name

    Where are these files stored?  Are they accessible via Powershell ?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 179 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 161 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 143

Overall leaderboard
Loading started