in this video you will learn how to rename all of the files inside of a folder using microsoft
power automate desktop available from free from microsoft now this is going to be especially
useful if you have a large amount of files inside of a folder that you need to rename this is going
to do it very quickly the first thing that we have to do is we need to add an action
that is going to get all of the files that we have inside of a folder this action is going
to select the folder that we want from which we want to extract all of the files and it is going
to put all of the files inside of a variable that it produces that is going to call files
this variable is going to be a list of all the different files and the different properties that
each file has the next thing that we have to do is we need to add a for each loop the forage loop is
going to allow us to iterate through all of the files or to cycle all of the files inside of the
folder and therefore rename them one by one so the next thing that we have to do is rename our file
the file that we are going to be renaming is not going to be a static name but it's going to be
the file that is currently being renamed so to do that and select it dynamically we're
going to select the current item and we're also going to set a static name right now for our
file but after this we're going to set a dynamic name that changes with each loop cycle so in this
example we're going to be renaming our file to rp champion profile underscore and then after the
underscore we're going to add a dynamic number that is going to increase the name of the file
so the next thing that we have to do is we need to set a variable this variable is going to be the
dynamic component of our name inside of our file so let's add this set variable so to add a set
variable we'll just drag and drop the action and obviously we'll name it with whatever we want but
something meaningful will make more sense in this case i will call it file name and i will also set
it to 1. it is also important to add the increase variable and the increase variable on the variable
that we have just created so the file name and we will increment it by one this means that
the final thing also we have to do is add to our name the file name so this is going to
make our name dynamic now with every loop cycle so these are the pictures that i want to rename
they are named differently now when i run this all of the pictures are going to be renamed with
rta champion profile and then the underscore one two three four five six for as many files as we
want and here we can see that the pictures are being renamed very quickly and they're all being
renamed however i said them to be awesome if you have enjoyed this video i have many more videos
like this don't forget to subscribe to the rpa champion and i will see you in the next automation