How to create and replace the old docx with new rename

How to create and replace the docx with rename instead of putting it in output, so i want the new rename files to replace the file ‘word’ that contains all the template. @Nguyen_Van_Luong1

regarding this,

Can you please give a sample to clear your requirements
Cheer

is the same as the file u sent me regarding the renaming of docx, the process puts it into a output i want it to keep in the folder call ‘word’ containing the templates.

oh, I see, my understand is you want to keep old name if the value in excel similar, that’s right

no, i want the output to replace the old word, E.g. in the folder ‘Word’ we replace it with the rename file instead of bringing the new renamed file to an output file which is what our current process does

Can you please give a sample to clear your requirements
demo with sample name or image if you can


So the new renamed docx will be put into a new folder called output, i want it to put in word where the template/original files are stored and delete the old files in the word folder.

So in the end the folder ‘word’ will be contain the new renamed files instead of the template/old folder

Oh, that’s easy, you can delete the old “Word folder” and then move the “Word” folder in “output” over here
Cheer

how do i do that in the current process?

like my above comment.
you can add activity “delete folder” to remove old “Word” folder
image

then use “Move folder” to move “Word” folder in “Output”
image

detail
image

Cheer

Hi @superpunchypp

use path exist
and check word folder is present or not
If present then delete the folder
if not present then move the folder to the desired location

could you show me in UiPath how is suppose to look like thanks

Why cant i just remove the copy folder activity?

Copying ensures that each time you test the program, the original data will not be affected
Think about it, if the program does not work well, if the name is not changed correctly, restoring the original data after each test will take a long time.
you can delete it and change the logic after this operation
Cheer

Is it possible to copy it into a variable instead of a folder in the computer as is abit weird to copy in a folder then delete that folder and bring the info to the original folder then delete the old not rename files

Oh, You can try with your way, I think maybe
Cheer

Delete the word folder first
then use move file activity
for placing the file in word folder

but if i change to variable which part does it has to be variable

Here you just want to delete the copy folder and delete the old folder, right?
If you have an existing folder containing word files and are not afraid of changing the name (even if there are mistakes), you may not need to copy and delete later.
If using variables, what do you want to dynamic, folder or file name or anything
Cheer

Yes, how do i do this you mention “If you have an existing folder containing word files and are not afraid of changing the name (even if there are mistakes), you may not need to copy and delete later.” this is exactly what i want no needing another folder to store the new rename file but instead just change it in the original folder containing all the original files.

Cheers