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 / Change Filename to Tit...
Power Automate
Answered

Change Filename to Title Case Desktop

(1) ShareShare
ReportReport
Posted on by 73
Hi Experts
 
I'm totally novice at Power Automate. Just shifted from Mac Automator to Power Automate.
 
I often need to change Files Names to Title Case on my Desktop. Tried using 'Change Text Case' but that doesn't seem to work.
 
Please help with the same.
 
Thanks a lot 🙏 
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    Hello,

    First use Get files in folder to get the files you want to rename to Title case.
    Then use that in for each loop.
    When the change text case has produced the variable with correct casing:


    Use that in Rename File(s) -action.

    Like so:


    Before:

     
    After:
  • SanjayGMusafir Profile Picture
    73 on at
    @eetuRobo Thanks a lot 🙏 that helped
  • SanjayGMusafir Profile Picture
    73 on at
    @eetuRobo Thanks for helping
     
    I had one additional enquiry in continuation to the above.
     
    I tried to use your method - 
    • When I do exactly as advised, it works fine.
    • But at times I need to use it in the middle of a flow (screenshot attached). At that time it gives error - Unable to rename file.
    Please help
     
    Thanks a lot 🙏
     
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    No worries!

    I answered this in your new thread but I put bit more simple way in my opinion here:


    Code to copy (remember to change the first actions initial folder):
    Display.SelectFileDialog.SelectFiles Title: $'''Choose Files''' InitialDirectory: $'''C:\\Users\\x''' IsTopMost: False CheckIfFileExists: False SelectedFiles=> SelectedFiles ButtonPressed=> OpenFiles
    File.RenameFiles.RenameReplaceText Files: SelectedFiles TextToReplace: $'''_''' ReplaceWith: $'''%' '%''' IfFileExists: File.IfExists.DoNothing RenamedFiles=> R000
    SET oNames TO R000
    IF OpenFiles = $'''Open''' THEN
        LOOP FOREACH CurrentItem IN oNames
            Text.ChangeCase Text: CurrentItem.NameWithoutExtension NewCase: Text.CaseOption.TitleCase Result=> nName
            File.RenameFiles.Rename Files: CurrentItem.FullName NewName: nName KeepExtension: True IfFileExists: File.IfExists.DoNothing RenamedFiles=> R002
        END
    END
    
     

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard