Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Gp1s1xB10lXiwO38jCv44Q
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,799 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,799 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,799 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,799 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard